SamCogan.com

Detailed PHP errors in IIS 7

After having to solve this problem a number of times I figured I ought to write this down. IIS7 by default will not show detailed PHP error messages, just a friendly 500 error, not much use when debugging.

So to enable detailed errors you need to run the following from the command line:

%windir%\system32\inetsrv\appcmd.exe set config -Section:system.webServer/httpErrors -errorMode:Detailed

Then resset IIS with IISReset

Tags: ,

This entry was posted on Wednesday, September 30th, 2009 at 8:41 am and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply


XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>