Mantis - apache2
Viewing Issue Advanced Details
4860 packaging major always 2011-11-11 01:38 2011-11-18 02:57
glenk  
bwalton  
normal  
closed  
fixed  
none    
none  
0004860: not honoring PidFile directive in httpd.conf
We run multiple web server configurations using the same /opt/csw/apache2/sbin/httpd binary. The PidFile directive in httpd.conf is not being honored; httpd seems to be hard-coded to be written to /var/run/httpd.pid, which prevents us from running more than one web server configuration on this server.

We're using the prefork MPM (httpd is linked to httpd.prefork).
For instance, this config is ignored:
ServerRoot "/opt/csw/apache2"
PidFile /var/opt/csw/apache2/log/dwinfoview/httpd.pid

Reference:
http://httpd.apache.org/docs/2.2/mod/mpm_common.html#pidfile [^]
Issue History
2011-11-11 01:38 glenk New Issue
2011-11-11 03:19 bwalton Status new => assigned
2011-11-11 03:19 bwalton Assigned To => bwalton
2011-11-11 03:21 bwalton Note Added: 0009403
2011-11-11 03:21 bwalton Status assigned => feedback
2011-11-11 21:14 glenk Note Added: 0009404
2011-11-18 02:57 bwalton Status feedback => closed
2011-11-18 02:57 bwalton Resolution open => fixed

Notes
(0009403)
bwalton   
2011-11-11 03:21   
Can you please confirm that you're not overlooking the PidFile value that gets set in /opt/csw/apache2/etc/extra/httpd-mpm.conf? Experimentation locally indicates that this would give the illusion of a hard coded value. Alter this allowed me to move the pid file as desired.

Thanks
-Ben
(0009404)
glenk   
2011-11-11 21:14   
Thanks Ben! Yes, it looks like we're now including that file; that's a change to the configuration that I had overlooked.

I appreciate your feedback, and I'll close out this bug.

Thanks again,
-glen