Here is a little how-to based on my personal experience:

  1. Download the latest stable .zip from php.net at windows binaries –> PHP x.x.x zip package
  2. unzip the package to c:\php
  3. move the content ( extension dlls ) from c:\php\ext to c:\php
  4. create a test file at one of your local websites ( c:\Inetpub\wwwroot\test.php ? ) with “<?php phpinfo();?>”
  5. open IIS
  6. right-click on your “website” ( where you stored test.php ) and select “Properties”
  7. Select the “Home Directory” tab and choose “Configuration”
  8. Choose “Add”
  9. 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
  10. Now choose the “Documents” tab and select “Add”
  11. Enter index.php and click on OK
  12. Finally, select Web Service Extensions on the left side and choose “Add a new Web service extension”
  13. Select “Add” and enter as path C:\php\php5isapi.dll and click on OK
  14. Then enter php5 as extension name and check “Set extension status to Allowed”. Then click on OK to enable this extension
  15. Now go to My Computer>Right-Click>Properties
  16. Click on “Environment Variables”
  17. Scroll to “path” and click “Edit”
  18. add “;C:\php\” and click OK
  19. Restart IIS
  20. 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 .

[del.icio.us] [Digg] [Facebook] [Ma.gnolia]

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.