Download a free virtual machine for your application and start developing right away! You could save hours installing packages or grappling with config files.
Relocated pidfile causing httpd to start but not stop
Submitted by admin on Thu, 12/18/2014 - 21:56
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