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

            Bug ID: 62483
           Summary: Unusable entries in error_log when event MPM is
                    activated
           Product: Apache httpd-2
           Version: 2.4.33
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: mpm_event
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Description of problem:

Since Fedora 27 the mpm_event_module is activated by default.
Outputs written by cgi-scripts to "stderr" during https-sessions are unusable
and ending up in the file error_log instead of ssl_error_log. The entries made
by cgi-scripts in the file error_log don't have any timestamp, User-Agent,
referer et cetera. The LogFormat from httpd.conf is ignored. All I can see is
the native output from the cgi-script.

Version-Release number of selected component (if applicable):

httpd-2.4.33-2

How reproducible:

Create a cgi-script which can output the word "Test" to stderr.

Steps to Reproduce:
1. Start httpd: systemctl start httpd.service
2. Send a https-request to a cgi-script which can produce an output (like the
word "Test") to stderr.
3. Check the file /var/log/httpd/error_log

Actual results:

The file /var/log/httpd/error_log contains a line with the word "Test". No
date, timestamp, et cetera. This is wrong and should be written to
/var/log/httpd/ssl_error_log, because of ssl-request.

Expected results:

The file /var/log/httpd/ssl_error_log should contain a line with the word
"Test" like this:

Wed Jun 13 16:44:20.295009 2018] [cgi:error] [pid 14844] [client ::1:59776]
AH01215: Test: /var/www/cgi-bin-ssl/test.cgi

Additional info:

A possible workaround is to switch back to prefork MPM in the file
/etc/httpd/conf.modules.d/00-mpm.conf

LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
#LoadModule mpm_event_module modules/mod_mpm_event.so

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

Reply via email to