Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.