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 2017/02/05 15:20:28 UTC

[Bug 60692] New: ErrorLog directive ignored for CGI scripts running under mod_cgid

https://bz.apache.org/bugzilla/show_bug.cgi?id=60692

            Bug ID: 60692
           Summary: ErrorLog directive ignored for CGI scripts running
                    under mod_cgid
           Product: Apache httpd-2
           Version: 2.4.10
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_cgid
          Assignee: bugs@httpd.apache.org
          Reporter: eserte12@yahoo.de
  Target Milestone: ---

Even though a per-vhost ErrorLog directive is present, all stderr from cgi
scripts go to the *default* errorlog, not the configured per-vhost errorlog.

This can be demonstrated with a small cgi script like

#!/usr/bin/perl
use CGI ':standard';
print header;
print "Hello, world!\n";
warn "test error";
__END__

The matching vhost configuration file has the following line

ErrorLog /tmp/eserte-apache-error.log


However, if the script is run, the stderr output goes to the central error.log
file:

*** /var/log/apache2/error.log ***
test error at /home/eserte/www/cgi-bin/stderr.cgi line 7.


If I switch from mpm_event+cgid to mpm_worker+cgi, then things work as
expected:

*** /tmp/eserte-apache-error.log ***
[Sun Feb 05 15:53:06.832564 2017] [cgi:error] [pid 12835] [client
192.168.1.3:59542] AH01215: test error at /home/eserte/www/cgi-bin/stderr.cgi
line 7.


(Note also that additionally the ErrorLogFormat directive is ignored in the
mod_cgid setup --- this could be the same issue as described in
https://bz.apache.org/bugzilla/show_bug.cgi?id=54221 )

apache2 is installed by package on a Debian/jessie system (exact version
number: 2.4.10-10+deb8u7).

Regards,
    Slaven

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 60692] ErrorLog directive ignored for CGI scripts running under mod_cgid

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60692

Joe Orton <jo...@redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ccolumbu@hotmail.com

--- Comment #1 from Joe Orton <jo...@redhat.com> ---
*** Bug 62682 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 60692] ErrorLog directive ignored for CGI scripts running under mod_cgid

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60692

Szőgyényi Gábor <sz...@freemail.hu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |szg0000@freemail.hu

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 60692] ErrorLog directive ignored for CGI scripts running under mod_cgid

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60692

Joe Orton <jo...@redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Joe Orton <jo...@redhat.com> ---
Even though this and PR 54221 are technically slightly separate issues they
have a common cause and fix.  Let's track further efforts in PR 54221 rather
than across two separate PRs.

See bug 54221 comment 27 for the latest update & call for testing.

*** This bug has been marked as a duplicate of bug 54221 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org