Fixing a Drupal White Screen of Death without having access to the apache error log

2008-04-15 / jpoesen

When you get a white screen of death or a Server Error 500, the first thing you want to do is check your web server’s error log to see what exactly went wrong.

If you’re on shared hosting however, you might not have access to it. Fortunately there’s an easy solution:

  • first create a new empty log file:
    • create php_error_log.txt in your drupal root directory
    • chmod it to 666
    • then modify .htaccess:
    • add: php_value error_log path/to/your/site/php_error_log.txt
  • add: php_value log_errors 1