whenpenguinsattack.com

Sunday, January 08, 2006

How to install php 4.4.1 on iis 6.0

Although this is not as common as installing it on a *nx machine (since I personally use freebsd and linux, im not going to play favorites), there are still a great deal of people out there that for one reason or another, would like to php scripts on a windows 2003 box (the company I worked for would not allow us to run anything but windows machines).

Steps for installing php 4.4.1 on a windows 2003 machine

note: These instructions are for iis 6.0

Step 1: Download php 4.4.1 (get the binary package, not the installer)
Step 2: Extract the .zip file you just downloaded (I usually extract it to the c drive and rename it php, but the name can be anything).
Step 3: Launch the iis (internet information services) manager
Step 4: Click on "web service Extensions" on the left and right-click on the right and pane and go to "add a new web service extension". There should now be a new window on the screen. for "extention name" use ".php". Click the add button on the right, and point it to c:\(the php directory from step 2)\sapi\php4isapi.dll. After this is done, check the box that says "set extension status to allowed" and click ok.
Step 5:

a) right-click "web sites" and go to properties.
b) click on the tab "home directory"
c) where it says "execute persmissions" it should state: "scripts and executables"
d) click the "configuration..." button
e) click the "add..." button
f) for executable, use the same one from step 4 (php4isapi.dll).
The extensions should be .php.

Step 6: copy php.ini to c:\windows and php4ts.dll,php4ts.lib to c:\windows\system32

Testing your new installation:

I usually create a file called "info.php" with the following:

If everything has been installed properly, when you go to "info.php", you should see an information page about php 4.4.1

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home