Hello,

I have installed mod_perl2

(http://perl.apache.org/dist/mod_perl-2.0-current.tar.gz,
mod_perl-1.99_09)

with

cd mod_perl-1.99_09
perl Makefile.PL MP_INST_APACHE2=1 MP_AP_PREFIX=/usr/local/apache2

and added

LoadModule perl_module modules/mod_perl.so
<Perl >
$ServerName = `hostname`;
</Perl>

to my httpd.conf

When I try to start the server I get

[Mon Jul 14 14:46:25 2003] [error] failed to resolve handler
`Apache::PerlSection'
Syntax error on line 321 of /etc/httpd/httpd.conf:
Bareword "Apache::OK" not allowed while "strict subs" in use at
/usr/lib/perl5/site_perl/5.8.0/i686-linux/Apache/PerlSection.pm line 47.
BEGIN not safe after errors--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/i686-linux/Apache/PerlSection.pm line 58.
Compilation failed in require at (eval 2) line 3.

It doesn't matter what I put between <Perl > </Perl>

Any hints?

Thanks,

Alexander Newald


Reply via email to