david winter

Enable PHP error logging

In php.ini:

display_errors = Off
log_errors = On
error_log = /var/log/php-errors.log

Make the log file, and writable by www-data:

sudo touch /var/log/php-errors.log
sudo chown www-data:www-data /var/log/php-errors.log

July 14, 2009

Questions? Comments? Your 2¢'s? → @davidwinter