Bug 1176804

Summary: httpd does not start - httpd: could not log pid to file /run/httpd/httpd.pid
Product: [Retired] JBoss Web Server 3 Reporter: Libor Fuka <lfuka>
Component: unspecifiedAssignee: Weinan Li <weli>
Status: CLOSED EOL QA Contact: Libor Fuka <lfuka>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.0.0CC: jclere, mbabacek, mturk, pslavice
Target Milestone: DR01   
Target Release: 3.0.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 18:36:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
httpd24 error_log none

Description Libor Fuka 2014-12-23 10:25:47 UTC
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)

Comment 1 Libor Fuka 2014-12-23 10:27:44 UTC
Created attachment 972355 [details]
httpd24 error_log

Comment 2 Libor Fuka 2014-12-23 10:42:33 UTC
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

Comment 3 Libor Fuka 2014-12-23 10:43:17 UTC
This should be set similar like ews2.1
PidFile run/httpd.pid

Comment 4 Weinan Li 2014-12-26 05:56:37 UTC
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

Comment 5 Weinan Li 2014-12-26 05:57:43 UTC
[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

Comment 6 Libor Fuka 2015-01-20 13:54:33 UTC
Verified with DR1 build.