Bug 62682 - mod_cgid ignores virt host ErrorLog directive
Summary: mod_cgid ignores virt host ErrorLog directive
Status: RESOLVED DUPLICATE of bug 60692
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_cgid (show other bugs)
Version: 2.4.34
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Depends on:
Reported: 2018-09-05 11:17 UTC by ccolumbu
Modified: 2019-07-05 10:26 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description ccolumbu 2018-09-05 11:17:24 UTC
By default my new Fedora server v 28 (Linux localhost 4.17.19-200.fc28.x86_64 #1 SMP Fri Aug 24 15:47:41 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux) uses mpm_event.
When I call a CGI script with print STDERR "test\n"; the entry appears in /var/log/httpd/error_log (which is the log file specified in the ErrorLog directive of /etc/httpd/conf/httpd.conf), instead of in the ErrorLog file specified in the <VirtualHost>.
When I switch to mpm_prefork it works as expected and writes into the file specified in the <VirtualHost> ErrorLog entry.

I am not sure if this is expected behavior as I have never used mpm_event before, but it was unexpected to me.
Comment 1 Eric Covener 2018-09-05 11:37:20 UTC
change title/component, I assumed you switched mod_cgi/mod_cgid at the same time as switching MPMs.
Comment 2 ccolumbu 2018-09-05 11:52:57 UTC
Yes mpm_event uses mod_cgid and mpm_prefork uses mod_cgi
Comment 3 Joe Orton 2019-07-05 10:26:28 UTC
Track this

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