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.

Reply via email to