Well frustrated with many things including being sleepless for over 30hrs, i had no mood to do this the intelligent way.

The dumb way is pretty safe, as safe as Ensim's structure, restorable and quick, so here you go:

1) Browse to http://www.php.net/downloads.php and download “PHP 5.x.x zip package” under “Windows Binaries”. It must be the 3rd link from top of the page and the first one under the title of “Windows Binaries”.

2) Extract it on you server to any location you like, desktop would be the easiest. You then have a folder named php-5.x.x-Win32 that has some folders like “dev”, “ext” and some files such as “php5isapi.dll”. Leave this window open as it is.

3) Go to C:WINDOWSsystem32inetsrv and you will find a folder called “php”. Rename this to any appropriate name incase you wish to reverse all you have done.

4) Create a new folder and call it “php” and copy the content of the extracted archive here.
Now you have a folder at C:WINDOWSsystem32inetsrvphp that has the “dev”, “ext” and “php5isap.dll” and all in it.

5) Locate a file named “php.exe” in this folder and rename it to “php-cli.exe”.

6) Locate a file named “php-cgi.exe” and rename it to “php.exe”.

7) Create a folder right here, where these files are, and name it “sapi”.

icon_cool.gif Copy all the files from the extracted archive into “sapi”. You should see “dev”, “ext” and “php5isapi.dll” under “sapi” as well.

9) Make a copy of the file named “php5isapi.dll” and rename the new file to “php4isapi.dll”. You should have both “php5isapi.dll” and “php4isapi.dll” in the folder now.

10) Find the file named “php5ts.dll” in the same folder and copy it to C:WINDOWSsystem32.

11) In C:WINDOWSsystem32, find the file named “php4ts.dll” and rename it to “php4ts.dll-old”. Also find and rename the file “libeay32.dll” to “libeay32.dll-old”.

12) In any of the new php folders, you will find 2 files named “libeay32.dll” and “libmysql.dll”. Copy them both to C:WINDOWSsystem32.

13) Right click on “My Computer” and selected “Properties”. Bring up the “Advanced” tab and at click “Environment variables” button at the bottom of the page for a new dialog to open. In the lower section, “System Variables” find “Path” and double click on it for a tiny box to open up. Put a semi-colon “;” at the end of the textfield titled “variable value” and paste the below string exactly as it is to the end of it:
C:WINDOWSsystem32inetsrvphp;C:WINDOWSsystem32inetsrvphpext;C:WINDOWSsystem32inet
srvphpsapi;C:WINDOWSsystem32inetsrvphpsapiext;
Hit OK, OK, OK for all the dialog boxes to close.

14) Open IIS manager and on the left pane click on “Web Service Extension” for the right side pane to open up. In this pane you will find some links on its left, first one being “Add new Web service extension”. Click on it and after the new dialog box opens up enter the “Extension name” as what ever you like. I entered “PHP5”. Click on Add and paste the following value or browse to it.
C:WINDOWSsystem32inetsrvphpsapiphp5isapi.dll
And select the checkbox at the bottom saying “Set extension status to Allowed” and hit OK for the dialog to close.

15) Find the file named “php.ini-recommended” in the extracted archive’s folder and rename it to “php.ini”. Edit it with notepad and search for “extension_dir” and set the line to read axactly as below:
extension_dir = "C:/WINDOWS/system32/inetsrv/php/sapi/ext"
Search for “Windows Extensions” and below it you will find all extensions available for you to enable. For a list of what is what refer to http://php.net/manual/en/install.windows.e....extensions.php. now save this file and copy it to the C:Windows folder.

16) Last thing left is restart IIS. Simply key in “iisreset” in the command prompt.


Hope you find this usefull.