Here is a little how-to based on my personal experience:
- Download the latest stable .zip from php.net at windows binaries –> PHP x.x.x zip package
- unzip the package to c:\php
- move the content ( extension dlls ) from c:\php\ext to c:\php
- create a test file at one of your local websites ( c:\Inetpub\wwwroot\test.php ? ) with “<?php phpinfo();?>”
- open IIS
- right-click on your “website” ( where you stored test.php ) and select “Properties”
- Select the “Home Directory” tab and choose “Configuration”
- Choose “Add”
- Add “C:\php\php5isapi.dll” (including quotes) to “Executable” and add .php as extension. Then limit the verbs to GET,HEAD,POST,TRACE and click on OK
- Now choose the “Documents” tab and select “Add”
- Enter index.php and click on OK
- Finally, select Web Service Extensions on the left side and choose “Add a new Web service extension”
- Select “Add” and enter as path C:\php\php5isapi.dll and click on OK
- Then enter php5 as extension name and check “Set extension status to Allowed”. Then click on OK to enable this extension
- Now go to My Computer>Right-Click>Properties
- Click on “Environment Variables”
- Scroll to “path” and click “Edit”
- add “;C:\php\” and click OK
- Restart IIS
- Open your “test.php” in a browser window ( http://localhost/test.php ? )
Should be done.
To add php extensions ( curl, etc ) uncomment the dll call lines on php.ini .
