mod_perl 2.0 and apache 2.2 Undefined subroutine &ModPerl::ROOT::ModPerl::Registry error

  • Thread starter it_says_BALLS_on_your forehead
  • Start date

it_says_BALLS_on_your forehead

I recently installed mod_perl 2.0, apache 2.2, and Perl 5.8.7 on my dev
I would like to take the most advantage of mod_perl's module caching as
i can.
(I hope this is the proper forum).

# in the httpd.conf, i have this:

LoadModule perl_module modules/

PerlRequire "/path/to/"

<Location /cgi-bin/ >
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI

# in, i have this:
use lib "/path/to/webObjects";
use Apache2 ( );
use ModPerl::Registry ( );

use Carp;
use CGI;

use lib_webObjects;

# in, i have:
use strict;
use HTML::Entities;
use CGI qw:)all);
use DBI;

# Base
use lib_config;
use lib_standard;
use parse_template;
use lib_random;

# Web Page Library
use lib_page;
use lib_sheet;

# Web Objects
use lib_container;
use lib_button;


# in the browser, i call a script:, which has
the following:

use strict;

use CGI qw:)all);

use URI::Escape;
use HTML::Entities;
use Date::Manip;

use lib_webObjects;

# Render page
print &get_page_header_html();

# ...the above function is defined in, which is use'd in

this is the function:
sub get_page_header_html {
return "Content-type: text/html\n";

# i can run successfully from the command line, but
# i run it through the browser, i get this in the error log

[Tue Jan 24 15:21:34 2006] [notice] Apache/2.2.0 (Unix) mod_perl/2.0.2
Perl/v5.8.7 configured -- resuming normal operations
[Tue Jan 24 15:21:38 2006] [error] Undefined subroutine
called at /apps/webstats/apache2/cgi-bin/webObjects/
line 55.\n

I am new to mod_perl. i am trying to cache all of my custom perl
modules. if i use() them in, do i have to use() them in each
script as well? after conducting some research online, i have the
suspicion that this may be a namespace issue, but i'm at a loss as to
how to proceed from here. how do i get my script to recognize the
function that is being use'd? help would be much appreciated.

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Latest member

Latest Threads