Description of problem: httpd does not start - httpd: could not log pid to file /run/httpd/httpd.pid Version-Release number of selected component (if applicable): JWS 3.0.0.DR0.1 Steps to Reproduce: 1. start httpd Actual results: error in error_log (attached)
Created attachment 972355 [details] httpd24 error_log
PidFile directive is missing in conf file. PidFile directive should be placed in 00-mpm.conf http://httpd.apache.org/docs/current/mod/mpm_common.html
This should be set similar like ews2.1 PidFile run/httpd.pid
Fix: [weli@dhcp-66-78-87 jws-compose]$ git diff diff --git a/postinstall b/postinstall index 5df578e..e6fce46 100644 --- a/postinstall +++ b/postinstall @@ -56,3 +56,5 @@ sed -i -e "s:/usr/share/httpd/manual:${currentDir}/../doc/httpd:g" conf.d/manual sed -i -e "s:/usr/share/httpd/noindex/index.html:${currentDir}/www/error/noindex.html:g" -e "s:/usr/share/httpd/noindex +# bz1176804 httpd: could not log pid to file /run/httpd/httpd.pid +echo "PidFile ${currentDir}/run/httpd.pid" >> conf.d/00-mpm.conf \ No newline at end of file --- Verification: [weli@dhcp-66-78-87 httpd]$ sudo sbin/apachectl start [weli@dhcp-66-78-87 httpd]$ ls run/httpd.pid httpd.pid
[weli@dhcp-66-78-87 httpd]$ tail -n 1 conf.d/00-mpm.conf PidFile /home/weli/rpmbuild/RPMS/x86_64/jws-3.0/httpd/run/httpd.pid
Verified with DR1 build.