You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by lists user <pr...@gmail.com> on 2007/09/29 05:12:06 UTC

strange errors on ModPerl::Registry

I have two sections in httpd.conf,one for modperl handler,one for
registry scripts.

<Location /iplook>
  SetHandler modperl
  PerlResponseHandler IP::Lookup
</Location>

Alias /perl/ "/home/httpd/test/"
<Location /perl>
    SetHandler perl-script
    PerlResponseHandler ModPerl::Registry
    Options +ExecCGI
    PerlOptions ParseHeaders
</Location>


The first section works pretty well.The second configure for registry
can't work.
I put a test script under /home/httpd/test,its contest is:

use strict;
use CGI;

my $q = $ENV{MOD_PERL} ? CGI->new(+shift) : CGI->new;

print $q->header;
print "hello world";

Then I request this test.cgi from browser,

http://example.com/perl/test.cgi

It can't work.I got the error message in error_log:

[error] Can't locate Apache/Response.pm in @INC (@INC contains: ... at
/usr/lib/perl5/5.8.5/CGI.pm line 186.\nCompilation failed in require
at /opt/httpd2059/test/test.cgi line 3.\nBEGIN failed--compilation
aborted at /opt/httpd2059/test/test.cgi line 3.\n


Please help.thanks in advance.

Re: strange errors on ModPerl::Registry

Posted by "Philippe M. Chiasson" <go...@ectoplasm.org>.
lists user wrote:
> I have two sections in httpd.conf,one for modperl handler,one for
> registry scripts.
> 
> <Location /iplook>
>   SetHandler modperl
>   PerlResponseHandler IP::Lookup
> </Location>
> 
> Alias /perl/ "/home/httpd/test/"
> <Location /perl>
>     SetHandler perl-script
>     PerlResponseHandler ModPerl::Registry
>     Options +ExecCGI
>     PerlOptions ParseHeaders
> </Location>
> [...]
> 
> It can't work.I got the error message in error_log:
> 
> [error] Can't locate Apache/Response.pm in @INC (@INC contains: ... at
> /usr/lib/perl5/5.8.5/CGI.pm line 186.\nCompilation failed in require
> at /opt/httpd2059/test/test.cgi line 3.\nBEGIN failed--compilation
> aborted at /opt/httpd2059/test/test.cgi line 3.\n

What version of CGI.pm is this ? Smells like a broken CGI.pm to me.

------------------------------------------------------------------------
Philippe M. Chiasson     GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
http://gozer.ectoplasm.org/       m/gozer\@(apache|cpan|ectoplasm)\.org/