PHP on IIS 7.0
May 10th, 2009 by
Cip
IIS 7 looks nothing like IIS 6. But fear not, just because it’s sexier than ever it doesn’t mean that you cant set up PHP in less than a minute!
Ladies and gentlemen, start your stopwatches (and webengines?)!
- Go to PHP.net and download the latest ZIP package for Windows.
- Extract into a folder that doesn’t make the path have spaces in it.
Wrong:
C:\Program Files\PHP
Correct:
C:\ProgramFiles\PHPObviously doesn’t need to be in ProgramFiles, it’s just an example.
- Launch IIS
- Select your server and click Handler Mappings
- Add Script Map
- Set Request Path to *.php and Executable to be php5isapi.dll in your PHP folder
- Press OK and allow it permissions to do its thing (press Yes in the inevitable permissions popup).
- Done!
Now, normally you would want to add index.php to your Default Documents list, but I assume you know how/will Google it. Enjoy your new PHP server! :-)
Or you try Web Platform Installer 2.0 Beta if you want it even faster:
http://www.microsoft.com/web/downloads/platform.aspx
May 19th, 2009 at 6:10 pm
Well I already have IIS, and I don’t really want SQL Server or Visual Web Developer, this guide is aimed at those who just want the core PHP extension.
Seems neat though! :-)
May 23rd, 2009 at 5:37 am