perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From will trillich <w...@serensoft.com>
Subject Re: apache2 -t... can't find Apache.pm?
Date Mon, 06 Feb 2006 05:09:03 GMT
On 2/5/06, Ken Perl <kenperl@gmail.com> wrote:
> comment out the PerlModule Apache in the file
> /etc/apache2/mod-enalbed/perl.conf, I guess Apache.pm isn't useful for
> apache2, it is used for apache1.x.
> when you install apache2 on debian 3.1, you reserved the old config
> file, right? so the line isn't removed.

reasonable approach, but:

# cat /etc/apache2/mods-enabled/perl.conf
PerlModule Apache2
#

even if it isn't needed, why can't it find it in the @INC listed
(below) but i *can*?

> On 2/6/06, will trillich <will@serensoft.com> wrote:
> > okay -- on a debian/stable system with apache2/mod-perl2, my apache2
> > can't find Apache.pm in /usr/lib/perl5 even tho it's right there!
> > config includes "PerlModule Apache2" before including conf.d of
> > course:
> >
> > # apache2 -t
> > Syntax error on line 3 of /etc/apache2/conf.d/Handler.conf:Can't
> > locate Apache.pm in @INC (@INC contains: /usr/lib/perl5/Apache2
> > /etc/perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7
> > /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
> > /usr/local/lib/site_perl . /etc/apache2) at /usr/share/perl/5.8/CGI.pm
> > line 191.\nCompilation failed in require at
> > /etc/apache2/conf.d/Handler.conf line 14.\nBEGIN failed--compilation
> > aborted at /etc/apache2/conf.d/Handler.conf line 14.\n
> >
> > # locate Apache.pm
> > /usr/share/perl5/HTML/Mason/FakeApache.pm
> > /usr/share/perl/5.8.7/CGI/Apache.pm
> > /usr/lib/perl5/Apache.pm
> > /usr/lib/perl5/Bundle/Apache.pm
> > /usr/lib/perl5/DBI/ProfileDumper/Apache.pm
> >
> >
> > if we reformat the @INC list above we see
> > (@INC contains:
> > /usr/lib/perl5/Apache2
> > /etc/perl
> > /usr/local/lib/perl/5.8.7
> > /usr/local/share/perl/5.8.7
> > /usr/lib/perl5
> > /usr/share/perl5
> > /usr/lib/perl/5.8
> > /usr/share/perl/5.8
> > /usr/local/lib/site_perl
> > .
> > /etc/apache2)
> >
> > so why can't it get its electronic hands on /usr/lib/perl5/Apache.pm?
> >
> > argh!
> >
> > (and, isn't that second-to-last "dot" entry a security-breach-lying-in-wait?)



--
will trillich
"Their iz ate errers in these sentance."

Mime
View raw message