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

I just installed IIS 7 on Vista, got PHP running, but I cant avoid the stupid default 500 error page if there is a problem with my php script, eg a compliation error etc.

How do I set up IIS (or maybe php) to show me the error thats causing the 500 problem.


share|improve this question
up vote 2 down vote accepted

Control Panel -> System and maintenance -> Administrative tools -> Internet Information Services Manager. Either click the Computer name for all sites, or open it up and click a particular site, then open ‘Error Pages’, right click 500 and choose Remove. Repeat for any other error pages you don't want.

This command should also do it server-wide:

%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/httpErrors -existingResponse:PassThrough

If you're sure you want nothing to do with error pages on any of your sites, you can also completely remove the feature from Control Panel -> Programs -> Programs and features -> Turn Windows features on or off -> IIS -> WWW Services -> Common Http Features -> HTTP Errors.

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.