Kapitel 3. mod_perl


apache2ctl -X -D PERLDB

Apache menu


Truncate is the same as truncate -size 0 error.log.

You can "delete" the Error Log while Apache is running.

apache2ctl -X starts Apache without Threads.

apache2ctl -X -D PERLDB starts the Debugger

To Debug mod_perl you need to install Apache::DB from Cpan.

cpan Apache::DB

And add the following lines to your Apache config.

  
<IfDefine PERLDB>
<Perl>
use APR::Pool ();
use Apache::DB ();
Apache::DB->init;
</Perl>
#location which should be debugged /cgi-bin/
<Location />
PerlFixupHandler Apache::DB
</Location>
</IfDefine>
  

şee mod_perl user guide