Skip to content

Instantly share code, notes, and snippets.

@davidisnotnull
Last active May 2, 2019 09:48
Show Gist options
  • Save davidisnotnull/586daa01ec2f75ced0d9e1b8d06ce37f to your computer and use it in GitHub Desktop.
Save davidisnotnull/586daa01ec2f75ced0d9e1b8d06ce37f to your computer and use it in GitHub Desktop.
Useful IIS commands

All of the following commands must be run in the C:\Windows\System32\inetsrv folder

This command enables pass through of error messages from PHP-FastCGI to IIS when running PHP sites, rather than just throwing a generic 500 message when something goes wrong. Replace sitename with the name of the site in IIS.

appcmd.exe set config "sitename" -section:system.webServer/httpErrors /existingResponse:"PassThrough" /commit:apphost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment