As promised I’m writing a guide for installing PHP on a Windows 2000 server. First you need to get the latest version of PHP and have a glance over the instructions they give on installing on windows. I’m not going into any minuet details, unless needed.
If you downloaded the zip file of PHP you’ll need to unzip the archive to a directory in the root of your hard drive (ex. C:PHP). This way any paths you have to give to PHP will be short and easy to remember.
Next you will have to edit the php.ini file. It’s called either php.ini-dist or php.ini-recommend. As you can tell which file they would like you to start off with. First copy the php.ini-recommend file to php.ini then open in wordpad (notepad screws up spacing and makes it impossible to read), then look for include_path and change to the appropriate path for the includes folder in PHP. Then a couple lines down from that should be the extension path to the ext folder in PHP change as appropriate again. After this scroll through the file and read comments and change anything that you think might pertain to your server. The final step is to copy the php.ini file to your winnt folder, this way it can be read by PHP
Configuring IIS is relatively simple in Windows 2000. First right click and go to the properties of the main server then go to the master properties for the WWW service. If you only need PHP on one instance in your server the steps are the same. You will need to go to ISAPI filters to tell the server the pages with the .php extension will need to be processed by PHP. Just click add and give it a name like PHP and then browse to where you have unzipped PHP eariler and look for a file called php5isapi.dll. This is the dll need for PHP to work. Then you will need to go the Home Directory tab then click configuration under Application Settings. Then under App Mappings click Add then point the executable to the php5isapi.dll again, and under the extension put .php, leave everything else the same. After this you will need to restart IIS for PHP to start working.
To create a test php page you will need to save a file test.php under where your webpages are stored. With html tags and this code inserted into the body of the page
If when you visit the webpage you see the message, then PHP is correctly setup and your ready to start build pages. One program I do recommend is Pivot, it’s a great blog server, if you want to host your own blog and have complete control of it. The also have a very helpful forum to assist you in any setup related problems.