httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pete Houston <...@openstrike.co.uk>
Subject Re: [users@httpd] Errorlog for cgi and Perl
Date Wed, 20 Mar 2013 09:22:35 GMT
On Tue, Mar 19, 2013 at 08:29:56PM -0400, Pierre Forget wrote:
> If I make a voluntary error in my Perl script, I get in the
> /httpd/domainname/logs/error_log:
> 
> [Tue Mar 19 20:19:25.500222 2013] [cgid:error] [pid 17263:tid
> 2921331520] [client 24.122.245.237:56995] End of script output
> before headers: testerreur.pl
> 
> And in the Apache error log
> (/httpd/usr/local/apache2/logs/error_log), I get the real error
> message that I need:
> 
> syntax error at testerreur.pl line 43, near ","

This suggests that you might be running either worker or event MPM
in your new installation as opposed to prefork in your older ones. The
threaded MPMs use mod_cgid instead of mod_cgi with the type of side-effect
regarding the error logs which you describe.

Is that the case?

Pete
-- 
Openstrike - improving business through open source
http://www.openstrike.co.uk/ or call 01722 770036 / 07092 020107

Mime
View raw message