Re: re: More Error Reporting Problems
| From: | Floyd Resler | Date: | Fri, 30 Dec 2011 16:11:43 +0000 |
| Subject: | Re: re: More Error Reporting Problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-316134@lists.php.net to get a copy of this message | ||
On Dec 30, 2011, at 11:05 AM, Matt Graham wrote:
> From: Floyd Resler <fresler@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