iis – Grey Panthers Savannah https://grey-panther.net Just another WordPress site Fri, 27 Feb 2009 07:36:00 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 206299117 Quick tips for installing PHP + IIS7 under Windows 7 https://grey-panther.net/2009/02/quick-tips-for-installing-php-iis7-under-windows-7.html https://grey-panther.net/2009/02/quick-tips-for-installing-php-iis7-under-windows-7.html#comments Fri, 27 Feb 2009 07:36:00 +0000 https://grey-panther.net/?p=382 58054545_d7179a8d36_o

If you are trying to install PHP under the default configuration of IIS7 with Windows 7 (and presumably Vista & Server 2008, but I observed it under Win7), you might run into problems (for example getting “Service Unavailable” errors). Here is how I managed to fix them:

First, make sure that you’ve installed all the “Application Development Features” as shown in the screenshot below. They are not installed by default and at least some of them are mandatory for being able to load PHP (I would assume that they are “CGI” and “ISAPI Filters” / “ISAPI Extensions”), but install them all, just to be on the safe side.

install_iis7_win7

Now (from an Administrator command line) go to the “C:Windowssystem32inetsrvconfig” directory and open up the file “applicationHost.config” with notepad. Remove all the references to PHP. Finally, re-add the *php <-> php5isapi.dll script mapping. Make sure that all your apppools are started and now everything should work.

I got some of the advice from this blogpost: Where did my IIS7 server go? Troubleshooting 503 "service unavailable" errors. Picture taken from psd’s photostream with permission.

]]>
https://grey-panther.net/2009/02/quick-tips-for-installing-php-iis7-under-windows-7.html/feed 4 382