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>
use APR::Pool ();
use Apache::DB ();
#location which should be debugged /cgi-bin/
<Location />
PerlFixupHandler Apache::DB

şee mod_perl user guide