perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Enrico Sorcinelli <e.sorcine...@pisa.iol.it>
Subject Re: [MP2] failed to resolve handler `Apache::PerlSections'
Date Thu, 04 Dec 2003 15:14:56 GMT
On Thu, 04 Dec 2003 09:37:13 -0500
Geoffrey Young <geoff@modperlcookbook.org> wrote:

> 
> 
> 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.

Thanks, I've seen: maybe it's needed to document this in Apache::Status docs (or
fix it at all)?

I'm little bit surprised because in mp2 1.9910 the same configuration works.

Moreover also works in mp2 1.9911 (without adding explicitly "PerlModule
Apache::PerlSections") this configuration:

   LoadModule perl_module modules/mod_perl.so
   PerlModule Apache2
   <Perl >
      use lib '/home/lib/perl';
   </Perl>
   PerlModule Apache::Status

by

	- Enrico


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


Mime
View raw message