[CentOS] Redirecting PHP error messages into a log file

Christoph Maser cmaser at gmx.de
Sat Jul 31 13:09:29 UTC 2010


Am 31.07.2010 14:48, schrieb Keith Roberts:

> It's a bit tricky setting up PHP error logging to a seperate
> file. This works for me on 32bit, Centos 5.5 and Fedora 12,
> and previous Fedora versions.
>
> Here are my settings:
>
> SELinux disabled at boot time.

How about leaving it on and consult /var/log/audit/audit.log to see if 
selinux is interfering. I guess if there is any denial its just because 
your new logfile has the wrong context and you can easily change that 
with chcon.

+C



More information about the CentOS mailing list