Skip to content

Instantly share code, notes, and snippets.

@liverbool
Created February 19, 2014 12:42
Show Gist options
  • Save liverbool/9091219 to your computer and use it in GitHub Desktop.
Save liverbool/9091219 to your computer and use it in GitHub Desktop.
http://askubuntu.com/questions/14763/where-are-the-apache-and-php-log-files
Check this settings in PHP.INI:
error_reporting = E_ALL | E_STRICT (as recommended for development in php.ini)
error_log = /var/log/php_errors.log
Then create log file manually
touch /var/log/php_errors.log
chown www-data: /var/log/php_errors.log
chmod +rw /var/log/php_errors.log
Now you can view PHP errors by this way
tail /var/log/php_errors.log
This is a solution to this issue for me.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment