| Published:
| Reading Time:
< 1 minute
| Author:

| Fixing PHP on Windows Server IIS

We recently had an issue with a site on which the config files had become corrupt. As a result it was impossible to do anything with this site in IIS. Even the command line was refusing to remove the site.

Fortunately, Windows Server 2008 R2 and thus IIS 7.5 makes it easy to it is very simple to edit the IIS Management Console contents.

  • On the top level of the IIS Management Console, click the Configuration Editor in the Features view
  • From thedropdown list select system.applicationHost and the sites
  • Click on the ellipsis to view the sites
  • Highlight and select “Site 2” and selct the Remove button in the action menu on the right hand navigation panel.
  • Close the window
  • In the Configuration Editor Actions menu click on the Apply button in the right hand navigation menu
  • Refresh the IIS Management Console
  • Now you should be able to that “Site 2” has been removed from the Management Console.