Bug 1176804 - httpd does not start - httpd: could not log pid to file /run/httpd/httpd.pid
Summary: httpd does not start - httpd: could not log pid to file /run/httpd/httpd.pid
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss Web Server 3
Classification: Retired
Component: unspecified
Version: 3.0.0
Hardware: Unspecified
OS: Linux
unspecified
urgent
Target Milestone: DR01
: 3.0.0
Assignee: Weinan Li
QA Contact: Libor Fuka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-23 10:25 UTC by Libor Fuka
Modified: 2020-03-27 18:36 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 18:36:20 UTC
Embargoed:


Attachments (Terms of Use)
httpd24 error_log (1003 bytes, text/plain)
2014-12-23 10:27 UTC, Libor Fuka
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.