Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've just installed lighttpd, and I'm not seeing any error messages on pages when I know errors must have occurred. All I get is a blank page. However, I do get the errors in the error log file - but I really want to see them while I develop instead of going into the log.

Surely lighttpd isn't supposed to do this?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

In your php.ini, make sure you have:

display_errors = On
share|improve this answer
    
Oh.. it was that simple. Thanks a lot =D –  Matt Jun 26 '10 at 14:24
    
Sure, glad I could help! –  Weboide Jun 26 '10 at 14:54

You might need to tweak your php.ini file.

The values you probably want to change are these:
error_reporting = E_ALL | E_STRICT
display_errors = On
display_startup_errors = On

It's not recommended to set these values on a production server, just dev machines.

If lighthttpd is like Apache, you'll also need to restart the service to pick up the new config changes.

share|improve this answer

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.