View previous topic :: View next topic |
Author |
Message |
wallace1819 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 17 Aug 2002 Posts: 195 Location: VT
|
Posted: Mon Nov 01, 2004 8:13 pm Post subject: Apache2::ModPerl::Registry error (SOLVED)...new question... |
|
|
I am using...
mod_perl-1.99.11
apache-2.0.52
The module is being loaded and I have added -D PERL to /etc/conf.d/apache2
my /etc/apache2/conf/commonapache2.conf looks like this...
Code: | <IfModule mod_perl.c>
PerlModule Apache2::ModPerl::Registry
#set Apache::Registry Mode for /perl Alias
# To set subdirectories to use perl set the following
# and comment the orignial:
# <Location ~ "^/perl/.*\.pl$">
<Location "^/perl/*.pl>
SetHandler perl-script
<IfDefine MODPERL2>
PerlResponseHandler Apache2::ModPerl::Registry
</IfDefine>
<IfDefine !MODPERL2>
PerlResponseHandler ModPerl::Registry
</IfDefine>
Options -Indexes ExecCGI
PerlSendHeader On
</Location>
#set Apache::PerlRun Mode for /cgi-perl Alias
<Location /cgi-perl/*.pl>
SetHandler perl-script
PerlResponseHandler ModPerl::PerlRun
Options -Indexes ExecCGI
PerlSendHeader On
</Location>
</IfModule>
|
and I am using ModPerl::Registry but I'm still getting this error when apache starts...
Code: | [Mon Nov 01 15:09:32 2004] [error] Can't locate object method "boot" via package "mod_perl" at /usr/lib/perl5/site_perl/5.8.4/i686-linux/Apache/Constants.pm line
8.\nCompilation failed in require at /usr/lib/perl5/site_perl/5.8.4/i686-linux/Apache.pm line 6.\nBEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.
8.4/i686-linux/Apache.pm line 6.\nCompilation failed in require at /usr/lib/perl5/site_perl/5.8.4/i686-linux/Apache/Registry.pm line 2.\nBEGIN failed--compilation
aborted at /usr/lib/perl5/site_perl/5.8.4/i686-linux/Apache/Registry.pm line 2.\nCompilation failed in require at (eval 3) line 3.\n
[Mon Nov 01 15:09:32 2004] [error] Can't load Perl module Apache::Registry for server localhost:0, exiting...\n
|
what else could be causing this?
Wally |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
wallace1819 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 17 Aug 2002 Posts: 195 Location: VT
|
Posted: Mon Nov 01, 2004 10:16 pm Post subject: |
|
|
Aparently I needed to uncoment
# enable if the mod_perl 1.0 compatibility is needed
use Apache::compat ();
from /etc/apache2/conf/modules.d/apache2-mod_perl-startup.pl
Is there a different version of mod_perl I should be using with apache2?
Wally |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|