perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: [MP2] failed to resolve handler `Apache::PerlSections'
Date Thu, 04 Dec 2003 14:37:13 GMT


Enrico Sorcinelli wrote:
> Hi all,
> 
> with this simple configuration (Apache 2.0.47 / mod_perl 1.9911):
> 
>    ...
>    LoadModule perl_module modules/mod_perl.so
>    PerlModule Apache2
>    PerlModule Apache::Status
>    <Perl >
>       use lib '/home/lib/perl';
>    </Perl>
>    ...
> 
> I've this error (the server doesn't start at all):
> 
> [Thu Dec 04 14:14:31 2003] [error] failed to resolve handler `Apache::PerlSections'
> Syntax error on line 12 of /usr/local/apache-2.0.47/conf/mod_perl.conf:
> <Perl> handler Apache::PerlSections failed with status=500 
> 
> The same directives work fine with until mp2 1.9910.
> 
> Moreover, if I comment "PerlModule Apache::Status" line or I move it after first
> <Perl ></Perl> section in httpd.conf file, the server starts.

because PerlSections::handler() is a method handler, you need to

PerlModule Apache::PerlSections

so that the require() in Apache::Status isn't the one to load the module.

in mp1 any kind of pre-loading was ok for method handlers, but this leads me
to believe that PerlModule is somehow required.  I dunno, though.

HTH

--Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message