Based on various questions received on using IIS7, here are some tips.

To install IIS you can use the Package Manager. Run the following at a command prompt:

pkgmgr.exe /iu:IIS-WebServerRole;IIS-WebServerFeature;IIS-FTPServerFeature

If you are using Longhorn Server, you can also use the Server Manager tool.

To uninstall IIS 7.0 use the /up switch instead of /ip (up = uninstall package)

To administer IIS use the webmgr.exe tool not inetmgr. Use InetMgr results in lots of errors when trying to do anything useful (like start the default website). Run the webmgr.exe tool using the /nommc switch for best results

Installing PHP
To install PHP, perform the following steps:

  • Download and extract the PHP ZIP from to c:\php
  • Add c:\php to the Windows Path environment variable (at a command prompt type: Path=%Path%;c:\php)
  • Rename c:\php.ini-recommended to c:\php.ini (and adjust any settings contained within that .ini file if required)
  • Open WebMgr.exe and select the local webserver.
  • Double-click "Handlers" under the "Server Components" heading
  • Click New Server Module Handler
  • Enter the following properties:
     Name: PHP
     Path: *.php
     Path Type: File
     Path Access: Script
     Request Type: enter the HTTP verbs you want to allow (GET, POST, HEAD etc)
    and then click Next
  • On the next screen choose:
     Module: ISAPIModule
     Script Processor: c:\php\php5isapi.dll
    and then click Next, and then Finish
  • Click the Home button to return the Web Server's properties home page
  • Double-click ISAPI and CGI Restrictions under "Security"
  • Click "New Restiction"
  • Enter the following properties:
     ISAPI Dynamic Link Library (.dll): c:\php\php5isapi.dll
     Group ID: PHP
     Description: PHP
     Select (check) the "Allow extension to execute" checkbox
    and click OK
  • Now create a sample PHP page (e.g. one containing <? phpinfo(); >) and save it in c:\inetpub\wwwroot\test.php
  • Access your new page at http://localhost/test.php

Hope that helps you all. If there are additional questions, please feel free to contact me