Nothing written to PHP error log

Just a quick checklist if you aren’t getting anything written to the PHP error log on your server:

  • In php.ini, do you have error_reporting set to E_ALL ?
  • In php.ini, do you have log_errors set to On ?
  • In php.ini, do you have track_errors set to On ?
  • Have you specified a valid file / location for error_log
  • Does the user that starts PHP (Apache) have relevant permissions and ownership to write to that error_log file ?
  • Does your application have an override set in .htaccess or php.ini for any of the above?
  • Have you restarted PHP/Apache after making changes for these things to take effect?
  • What does php -i | grep error tell you regarding these settings?