Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2::ModPerl::Registry error (SOLVED)...new question...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
wallace1819
Apprentice
Apprentice


Joined: 17 Aug 2002
Posts: 195
Location: VT

PostPosted: Mon Nov 01, 2004 8:13 pm    Post subject: Apache2::ModPerl::Registry error (SOLVED)...new question... Reply with quote

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
View user's profile Send private message
wallace1819
Apprentice
Apprentice


Joined: 17 Aug 2002
Posts: 195
Location: VT

PostPosted: Mon Nov 01, 2004 10:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum