You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/01/26 10:50:29 UTC
DO NOT REPLY [Bug 38398] New: - STDERR output from cgi put in the wrong log with cgid threaded apache
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38398>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38398
Summary: STDERR output from cgi put in the wrong log with cgid
threaded apache
Product: Apache httpd-2
Version: 2.0.55
Platform: Other
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P3
Component: mod_cgid
AssignedTo: bugs@httpd.apache.org
ReportedBy: matrix@itlegion.ru
Apache/2.0.55 (FreeBSD) PHP/5.1.1
on FreeBSD 6.0-STABLE
Apache is compiled with threads (worker MPM, cgid).
There i have a main config file (httpd.conf) with main error and main access
log like this:
User www
Group www
ServerAdmin info@itlegion.ru
ServerName 84.21.226.213:80
ErrorLog /hosts/SYSTEM/httpd-error.log
CustomLog /hosts/SYSTEM/httpd-access.log combined
LogLevel debug
Then virtual hosts are loaded:
NameVirtualHost 84.21.226.213:80
Include etc/apache2/Includes/*
Currently there is only one virtual host wich has its own access
and error log:
ErrorLog /hosts/meliora.ru/logs/errors
CustomLog /hosts/meliora.ru/logs/access combined
But the problem is that if error occures (or anything output into stderr)
in CGI script it does not appear in virtual host error log, but it goes into
main server error log.
For example a simple script with error:
#!/usr/bin/perl
warn "It aint' workin'\n";
Outputs into virtual host error log only this:
[Wed Jan 25 00:25:56 2006] [error] [client 85.140.105.134] Premature end of
script headers: a.pl
And the messages gotes into main server log in hosts/SYSTEM/httpd-error.log:
It aint' workin'
All the docs for Apache say that this should NOT be this way and all STDERR
should go into
vertual host error log. Any idea why this happens and how to avoid this?
On apache 1.3 the warn message goes into virtual host error log and on another
Apache/2.0.52 which is on FreebSD 5.3-STABLE and is NOT compiled with thread
error logs
go to the right virtual host log.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 38398] - STDERR output from cgi put in the wrong log with cgid threaded apache
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38398>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38398
------- Additional Comments From dhgutteridge@hotmail.com 2006-02-28 17:38 -------
This looks like a duplicate of bug 14090. (I'm not an Apache developer, so I'm
not sure if it's okay for me to change the status of a bug report, I've left it
as-is.)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 38398] - STDERR output from cgi put in the wrong log with cgid threaded apache
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38398>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38398
rpluem@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
------- Additional Comments From rpluem@apache.org 2006-02-28 21:15 -------
Good catch David. Marking it as a duplicate.
*** This bug has been marked as a duplicate of 14090 ***
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org