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

Hey guys, I just installed apache2 with curl and php5. I haven't touched the config files, and every time my php throws an error (function doesn't exists, variable not set, etc), instead of display an error message (like my code says to) the server throws a 500 internal server error. While this isn't inaccurate, I would like a little more information for the dev site, and a prettier error screen for the production site.

Any ideas on how to fix this?

share|improve this question
Check the Apache logs. They should say something C:\Program Files\Apache Group\Apache2\logs\error.log or C:\Program Files\Apache Group\Apache2\logs\access.log – random May 25 '11 at 2:20
That is how I figured out it was php errors causing the 500 headers. Though they just give the error information, and that's it. – Ben May 25 '11 at 2:35
Have you tried running the PHP directly without Apache in the way? – Xenoactive May 25 '11 at 2:56
up vote 1 down vote accepted

You have display_errors = off in your php.ini file. You need to set it to on.

share|improve this answer
Thanks for the help. – Ben May 25 '11 at 17:21

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.