On Dec 30, 2011, at 11:05 AM, Matt Graham wrote:

> From: Floyd Resler <fres...@adex-intl.com>
>> I'm still  having problems with error reporting and I'm not sure why.
>> php.ini section:
>> error_reporting = E_ALL & ~E_DEPRECATED
>> display_errors = On
>> log_errors = On
>> error_log = /var/log/php_errors.log
> 
>> Errors are neither getting displayed nor recorded in my error log. 
> 
> Check that /var/log/php_errors.log exists and that the user that your
> webserver is running as has permission to write to that file.  "touch
> /var/log/php_errors.log && chown apache:apache /var/log/php_errors.log" as
> root may work; modify user/group if necessary.  /var/log is always owned by
> root and is 755, meaning that the webserver user doesn't have permission to
> create that file if it doesn't exist.
> 
Goodness, I can't believe I missed something as simple as file permissions!  
That's why they weren't getting written to the log!  I'm still not sure why 
they aren't displaying.  But as long as I have a place to find them I'm cool 
with that.

Thanks!
Floyd


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to