1. Extract php zip folder to C:\php.
2. Copy php.ini-recommended to a directory that PHP is able to find and rename it to php.ini.
3. Edit php.ini and Set doc_root = c:\inetpub\wwwroot // for IIS/PWS [optional]
4. For IS, Set the browscap configuration setting to c:\windows\system32\inetsrv\browscap.ini on XP.
5. Set Environment variable:
* Click on the ‘Environment Variables’ button from MY Computer property.
* Look into the ‘System variables’ panel
* Find the ‘Path’ entry (may need to scroll to find it)
* Double click on the ‘Path’ entry
* Enter PHP directory at the end, including ‘;’ before (e.g.
;C:\php)
* Click on ‘New’ and enter ‘PHPRC’ as the variable name and the
directory where php.ini is located as the variable value (e.g.
C:\php)
* Press OK and restart your computer
6. Set extension_dir = “c:\php\ext”
7. To enable IIS 6.0 to run 32-bit applications on 64-bit Windows
1. Open a command prompt and navigate to the %systemdrive%\Inetpub\AdminScripts directory.
2. Type the following command:
cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 “true”
3. Press ENTER.
8. Need to start the Microsoft Management Console (may appear as ‘Internet Services Manager’, either in your Windows NT 4.0 Option Pack branch or the Control Panel=>Administrative Tools under Windows 2000/XP). Then right click on your Web server node (this will
most probably appear as ‘Default Web Server’), and select ‘Properties’.
To use the ISAPI module, do the following:
* If you don’t want to perform HTTP Authentication using PHP, you can
(and should) skip this step. Under ISAPI Filters, add a new ISAPI
filter. Use PHP as the filter name, and supply a path to the
php4isapi.dll / php5isapi.dll.
* Under ‘Home Directory’, ‘Virtual Directory’, or ‘Directory’, do the
following:
* Change the Execute Permissions to ‘Scripts only’
* Click on the ‘Configuration’ button, and choose the Application
Mappings tab. Click Add and set the Executable path to the
appropriate ISAPI DLL. An example PHP 5 value is:
C:\php\php5isapi.dll Supply .php as the extension. Leave ‘Method
exclusions’ blank, and check the ‘Script engine’ checkbox. Now,
click OK a few times.
* Stop IIS completely (NET STOP iisadmin)
* Start IIS again (NET START w3svc)
9. With IIS 6 (2003 Server), open up the IIS Manager, go to Web Service Extensions, choose “Add a new Web service extension”, enter in a name such as PHP, choose the Add button and for the value browse to the ISAPI file (p4isapi.dll or php5isapi.dll) and then check “Set extension status to Allowed” and click OK.