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.

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?
Thanks,
Max

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. –  mazzzzz 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

1 Answer 1

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. –  mazzzzz May 25 '11 at 17:21

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.