----- Original Message ----- From: "Stas Bekman" <[EMAIL PROTECTED]> To: "Alexander Newald" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, July 15, 2003 12:26 PM Subject: Re: Bareword "Apache::OK" not allowed, Apache::PerlSection
> Alexander Newald wrote: > > 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? > > works fine for me, may be you need to add: > > PerlModule Apache2 > > before your first <Perl> section? > > Also I'd suggest to always run your mod_perl server with: > > PerlSwitches -wT Hello, I have done all this. As I had some more spare time I tried the cvs version and found that cvs version is working. The code of PerlSection.pm differs from the current tar and the cvs Is this a bug and I should post a bug report on it? Alexander Newald