Bug 22672 - CGI's launched via suexec sent stderr to default error_log instead of virtual server error_log
Summary: CGI's launched via suexec sent stderr to default error_log instead of virtual...
Status: RESOLVED DUPLICATE of bug 14090
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_cgi (show other bugs)
Version: 2.0.47
Hardware: All other
: P3 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-23 06:28 UTC by Henry
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henry 2003-08-23 06:28:31 UTC
CGI's output to stderr is logged in the server's default error_log instead of 
the error_log for the virtual server with the corresponding SuexecUserGroup 
directive.

Perhaps there is an architectural limitation that lead to the current 
implementation.  If its not feasible to log the suexec'd CGI's stderr to the 
corresponding error_log of the virtual server, then PLEASE record the full path 
of the CGI in the system's default error_log.  At least then it becomes 
possible to later parse the log and report errors back to the owners of the 
virtual servers.

Thanks for your time reading and responding to this.

P.S.  Fantastic work guys.  I love Apache 2!
Comment 1 Jeff Trawick 2003-09-10 14:08:36 UTC
is this with mod_cgi or mod_cgid?
Comment 2 Henry 2003-09-13 01:32:47 UTC
I'm using mod_cgid and the worker MPM on a single processor x86 2.4.18 kernel.

When using the worker MPM, what is the latest recommendation for the latest x86 
Linux kernels?  mod_cgi or mod_cgid?
Comment 3 Jeff Trawick 2003-10-10 13:10:33 UTC
This is a more general problem than just with suexec.

Henry, I'm sorry I didn't see your update before.  Regarding your question on
what to use: mod_cgid is always the recomendation when using a threaded MPM. 
With prefork MPM, mod_cgi is almost always the better choice.  However, folks
with CGIs that generate a lot of output to stderr encounter problems with
mod_cgi that don't occur with mod_cgid.  Clear as mud?


*** This bug has been marked as a duplicate of 14090 ***
Comment 4 Henry 2003-10-20 22:14:53 UTC
Yup, I'm clear .. I did some more homework.

I'm using the correct one (mod_cgid) with MPM worker.
However, I only experienced problems after switching to using suexec.  Prior to 
that, stderr seemed to go to the right places.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14090 is definitely a 
duplicate of the bug I opened.  Sorry I missed that entry when looking for 
existing reports of this problem.