Perrin Harkins wrote:
On Tue, 2005-05-03 at 00:21 +0800, jiesheng zhang wrote:The PerlModule seemed not working in my system. My system is suse 9.1, apache-2.0.49. mod_perl 1.99 release12.
I saw debug information in the apache log file after I added the
use Apache::DBI to the startup.pl. However, this is not mentioned in the Apache::DBI documentation. The documentation only mentioned that I should add
PerlModule Apache::DBI to the http.conf.
Either way works. If you were doing it with PerlModule before, you
should have seen the debug information.
Here is my mod_perl.conf which is included to httpd.conf
<IfModule mod_perl.c> PerlModule Apache::DBI # PerlTrace all PerlRequire "/etc/apache2/mod_perl-startup.pl" # PerlOptions +OpenLogs +Log ScriptAlias /perl/ "/srv/www/cgi-bin/" <Location /perl/> # mod_perl mode SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOptions +ParseHeaders Options +ExecCGI </Location>
ScriptAlias /cgi-perl/ "/srv/www/cgi-bin/" <Location /cgi-perl> # perl cgi mode SetHandler perl-script PerlResponseHandler ModPerl::PerlRun PerlOptions +ParseHeaders Options +ExecCGI </Location>
# The /cgi-bin/ ScriptAlias is already set up in httpd.conf
</IfModule>
By this configuration, without the "use Apache::DBI ();" and with "$Apache::DBI::DEBUG=1" in the startup.pl, I could not see the debug output in the error log.
- Perrin