Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month, online, via Jitsi Meet.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] apache issue (dan moylan)



discuss-request at driftwood.blu.org writes:
> From: dan moylan <jdm at moylan.us>
>
> i created a directory /home/moylan/log and changed ownership
> to apache:apache.  apache can't write to it.  is there any
> way i can create a directory under /home/moylan that apache
> is able to write to?

Two things to watch out for:  Apache has to have x permission for all
directories above /home/moylan/log so that it even find the log
directory.

SELinux tends to be set to limit what daemons can access even if the
permission bits let them.  Particularly, there seem to be restrictions
on accessing user directories.  Check the security context of the Apache
process and the ACLs on /home/moylan and /home/moylan/log.

But as Rich said, it's probably better to put the log directory among
the "system" directories.

Dale



Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org