Relocated pidfile causing httpd to start but not stop

admin's picture

Most of our PHP builds are based on Zend Server, but just occasionally we'll need an up-to-date Apache for PCI compliance.

doapache handles most of the details, but it relies on Puppet Labs' apache module. The module was locating the HTTPD pidfile in /var/run/httpd.pid, but it didn't update the /etc/init.d/httpd start/stop script. That means that Apache could start properly, but not stop, because it couldn't find the newly created pidfile.

The solution was to make the symlink in /etc/httpd/run point to ../../var/log/httpd:

cd /etc/httpd
ln -snf ../../var/log/httpd run

Recent Articles

published 1 year 10 months ago

Site

Follow Us

Twitter icon
Facebook icon
LinkedIn icon
SlideShare icon
YouTube icon
RSS icon