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

The following script is not outputting error messages to the browser. Instead it results in an HTTP Error 500 response.

ini_set('display_errors', 'On');


echo "test" asdf // This should error

Ideas? This is a basic php5/apache2 install on ubuntu. httpd.conf is blank, no .htaccess file.

The error.log file displays the error message:

syntax error, unexpected T_STRING, expecting ',' or ';'

which is correct.

share|improve this question
up vote 3 down vote accepted

If the script has a parse error that prevents it from running, this also prevents it from changing a PHP setting.

share|improve this answer
So the solution is to just turn on errors via the ini files. This error is fatal. – EmpireJones Mar 10 '11 at 5:59

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.