Install PHP on IIS6 / Windows Server 2003
How to install the php extension in IIS6:
1) Donwload the php package for Windows
2) Unzip it in a folder(i.e. c:\php)
Do not forget to add the reading and executing permission on that folder
3) Copy the “php.ini-recommended” file in %systemroot% (Usuallyc:\Windows)
To go to
%systemroot%:
- Start/ Run… enter%systemroot%and then press Ok
4) Rename the file as “php.ini”
5) Edit it, depending of the configuration you want
6) Open the IIS manager (inetmgr inRun…)
7) Go to the properties of the Default Web Site, in the Home Directory tab, and click onConfiguration
8 ) Click on Add, Executable and enter the directory to thephp5isapi.dll file (ex: c:\php\php5isapi.dll)
9) Write .php in Extension and then close the window by clicking on Ok
10) In the Documents tab addindex.php and put it on the top, so the first page to be open will be that one
11) In the IIS manager click on Web Service Extensions
12) Click on Add a new web service extension
13) Give it a name (i.e. PHP5.2.6) and add the file:php5isapi.dll
14) Check the box and cick on Ok
15) Finally restart IIS (iisreset in Run…)
Notes:
If you have several Website hosted on the same server, you can do it on the “Default Web Site” for all the websites or on a particular one if you want that only one to have php enabled.













