Does anyone know what can cause this error in Apache's error log (particularly in Arch Linux):
PID file /run/httpd/httpd.pid not readable (yet?) after start.
The error is not stopping Apache from running normally (once it is started), but is potentially slowing down my service restart time significantly.
Any guidance would be appreciated.
The solution is to adjust the file /usr/lib/tmpfiles.d/apache.conf. The default values are wrong. You have to change this
d /run/httpd 0755 root root -
to
d /run/httpd 0755 http http -
.
After restarting apache the PID file will be created with chown http:http and not chown root:root.
Ressources:
My take is that this bug is a feature: Nothing I've done has been able to get rid of it (tried everything suggested here and then some) yet the software runs just fine. So, I take it as a slightly mis-written success message - I've started!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With