Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

To make sure I even set this in the php file;


But, as an example, when I accidentally miss a } the screen stays white; no error is shown. When I use the exact same php file on a shared webhost, the error is correctly shown.

php.ini is set to E_ALL | E_STRICT

php memory limit is set to 2k

timeout is set to 0 (infinite)

Anyone have a clue? I use lighttpd on debian 6.

share|improve this question
up vote 0 down vote accepted

PHP doesn't (can't) run the script if you hit a parsing error (like a misplaced bracket).

You can run php -d display_errors=On -l "script.php" to see parsing errors from the command line.

Because the script is never evaluated, your functions to change the error reporting level will never run. You'll need to set those flags via .htaccess or php.ini for them to be available during parsing.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.