[Step
2]
Install IIS on your PC
- Start > Settings > Control Panel > Add/Remove Programs >
Add/Remove
Windows Components, select Internet Information Services (IIS) and
click on the install button.
- Restart your PC
[Step
3]
- Unzip the content and change the folder's name to "php"
- Copy this folder to C:\WINNT\system32\inetsrv\ folder
[Step
4]
- Copy the PHP.INI-DIST file to C:\WINNT\ folder and rename it to PHP.INI
[Step
5]
- Open the PHP.INI file using Notepad
- Change the line:
extension_dir = "./" for this other one :
extension_dir = "C:/WINNT/system32/inetsrv/PHP/extensions"
- and change the line:
doc_root = for this other one :
doc_root ="C:/Inetpub/wwwroot"
[Step
6]
Open Internet Services Manager
- Start > Settings > Control Panel > Administrative Tools >
Internet
Services Manager
- Right click on "Default Web Site" and select "Properties"
[Step
7]
- Select the "Home Directory" tab and click on "Configuration"
button
- Click on "Add" button
- Click on "Browse" button and go to "C:\WINNT\system32\inetsrv\sapi"
folder
- In the "Files of type" combobox select the "Dynamic Linked
Libraries
(*.dll)" option
- Then select the file php4isapi.dll and click on the "Open"
button
- In the "extension" textbox write ".php"
- And check the "Check that file exits" option
- Click on "OK" button
- Don't close the "Default Web Site properties" windows
[Step
8]
- Select the "ISAPI Filters " tab and click on "Add"
button
- In the "Filter Name" textbox write "PHP"
- In the "Executable" textbox write "C:\WINNT\system32
\inetsrv\sapi\php4isapi.dll" or select using "Browse" option
as before
- Click on "OK" button twice
[Step
9]
- In the Internet Services Manager window select the name of your PC
- Click left on it and select the "Restant IIS" option
- Click OK
[Step
10]
- Finished the previous step go to dektop and right click "My
Computer" icon and select "Properties"
- Select the "Advanced" tab and click on the "Environment
variables"
button
- In the second group (System Variables) select "Path"and click
on "Edit" button
- Go to the last character and add the following text ";%SystemRoot%
\system32\inetsrv\php\sapi;%SystemRoot%\system32\inetsrv\php"
- Click on "OK" button twice
- Restart your PC
[Step
11]
Testing your installation
- Open notepad and paste the following code
<? phpinfo(); ?>
- Save it as phpinfo.php on the C:\Inetpub\wwwroot\ folder
- Open IE and try to enter to http://localhost/phpinfo.php
[Step
12]
Enjoy it !!!