Thursday, July 19, 2012

PHP error log => Remember log permissons

This is more for me self than anything else.

When enabling PHP error logging, for clients,  do:

Edit php.ini file (or create a new one in conf.d (/etc/php5/conf.d/php.ini)).

error_reporting = E_ALL & ~E_DEPRECATED
display_errors = Off
log_errors = On
error_log = /var/log/apache2/php-error.log

THEN !!!!!

Remember to chown 0666 the $error_log.

For on apache restart. The owner is root root, but user www-data, cant write to it.



No comments:

Post a Comment