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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from bugzilla@apache.org
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: [hidden email]
          Reporter: [hidden email]
  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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

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

Szőgyényi Gábor <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=60692

Joe Orton <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #1 from Joe Orton <[hidden email]> ---
*** 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: [hidden email]
For additional commands, e-mail: [hidden email]