Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

If I have an error in the PHP code, Lighttpd gives a 500 error and a line like this

mod_fastcgi.c.2676) FastCGI-stderr: PHP Parse error:...

appears in the log.

The php.ini (/etc/php5/cgi/php.ini) has the following lines:

display_errors = On
display_startup_errors = On
error_reporting = E_ALL

I'd like to see the errors in the browser, not in the log of the web server.

share|improve this question
In the future, please try a quick google search before posting here. – terdon Jun 5 '13 at 21:20
up vote 0 down vote accepted

You will need to set display_errors to Onin your php.ini file:

display_errors = On
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.