Perrin Harkins wrote:

> On Thu, 2003-11-06 at 16:49, Joachim Feise wrote:
> 
>>using Perl 5.8.1, mod_perl 1.29, Apache 1.3.29, I see this warning in my
>>Apache error log file whenever I start Apache:
>>[Wed Nov  5 01:24:20 2003] CGI.pm: Constant subroutine CGI::XHTML_DTD redefined
>>at /usr/lib/perl5/5.8.1/constant.pm line 108.
> 
> 
> Are you actually stopping and starting, or just doing apachectl
> restart?

Tried both. No difference.

>  Are you usng PerlFreshRestart?

Yes.
httpd.conf:
# mod_perl stuff
<IfModule mod_perl.c>
    Include conf/perl.conf
</IfModule>

perl.conf:
PerlFreshRestart On
PerlRequire conf/startup.pl

# Run Perl CGI scripts in the server process using mod_perl
Alias /perl/ /home/www/perl/
<Location /perl>
  SetHandler perl-script
  PerlHandler Apache::Registry
  PerlSendHeader On
  Options +ExecCGI
</Location>

# Hello World example
<Location /hello/world>
  SetHandler perl-script
  PerlHandler Apache::Hello
</Location>


startup.pl:
#!/usr/bin/perl

BEGIN
{
    use Apache();
    use lib Apache->server_root_relative( 'lib/perl' );
}

# commonly used modules
use Apache::Registry();
use Apache::Constants();
use CGI qw(-compile :all);
use CGI::Carp();

1;

-Joe


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html

Reply via email to