[arch-general] Apache PID File not readable

Pedro Alejandro López-Valencia palopezv at gmail.com
Mon Jul 29 16:17:06 EDT 2013


On Mon, Jul 29, 2013 at 12:15 PM, Jameson <imntreal at gmail.com> wrote:

> On Sun, Jul 28, 2013 at 8:03 AM, Stefan Tatschner
> <stefan.tatschner at gmail.com> wrote:
> > I always get this message after restarting apache via systemctl: PID
> > file /run/httpd/httpd.pid not readable (yet?) after start.
>
> What does cat /usr/lib/tmpfiles.d/apache.conf return?
>
>
There lies Stefan's problem. It creates the directory as root:root.

And this can be a bug or not a bug depending on your take:

a.) A bug: The default apache config uses user and group http but the
install script doesn't create them!!! And the tmpfile config should user
http as user and group for the pid directory.

b.) Not a bug.  Those are software defaults, you should make sure
everything is configured with tight security and no default values will
help you there. Furthermore, there is already a nobody user and group
defined, use that.

So, pick you battle and file a bug, or not. :-)


-- 
http://about.me/palopezv


More information about the arch-general mailing list