07-18-2010, 08:28 PM | #1 |
Administrator
Join Date: Jul 2010
Posts: 402
Rep Power: 10 |
Debugging Blank PHP Screens
In most production environments, the display_errors directive is set to off in the PHP configuration file so when there is a PHP error, the actual error message is not displayed to the user. This is done mostly for security reasons but it can really cause headaches when you are trying to figure out why a page has suddenly stopped working and is only showing your a blank white screen.
If you have access to your Apache error log via a shell (such as SSH or Telnet or a terminal) then you can simply watch the error log with the tail command and see your error as it comes in. This example assumes your path to your error log is /var/log/httpd/error_log: Code:
tail -f /var/log/httpd/error_log Code:
tail -f /var/log/httpd/error_log | grep 123.123.123.123 |
Reply With Quote |
Reply |
Tags |
php and apache |
Thread Tools | |
|
|