Hi!
I'm running mod_perl 1.23/apache 1.3.12/perl 5.005_03 on Mandrake 7.
mod_perl seems to be up and running and things are working well.
However, I add:
<Location /test>
SetHandler perl-script
PerlHandler My::Test
</Location>
and Test.pm looks like:
sub handler {
my $r = shift;
$r->send_http_header("text/html");
use Apache::Util ();
print Apache::Util::escape_html("<code>");
}
When I go to /test I get internal server error, and this in the logs:
[Fri Apr 28 12:59:57 2000] [error] Can't locate loadable object for
module Apache::Util in @INC (@INC contains: /home/alex
/usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503
/usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005
. /usr/local/apache_perl/ /usr/local/apache_perl/lib/perl) at
/usr/lib/perl5/site_perl/5.005/i386-linux/mod_perl.pm line 65535
BEGIN failed--compilation aborted at /home/alex/My/Tester.pm line 8.
[Fri Apr 28 12:59:57 2000] [error] Undefined subroutine &My::Tester::handler called.
which seems to be a problem loading Apache::Util. Any idea where to go
>from here to debug?
Cheers,
Alex