Apr 22 2009

Install PHP5 on IIS 6 – Windows Dedicated Server

IIS is the webserver for Windows Dedicated servers. Installation of PHP 5 be done but it is recommended that you confirm with your web hosting provider before installing it on your Windows Dedicated server.

php dedicated web server hosting

Note : Below given steps are for installing PHP5 on Windows Dedicated server with Windows 2003 Operating system. Make sure that IIS 6 and Windows 2003 Server is already installed on your Server before you try the steps given below to install PHP5.

1. Download Zip Package of PHP from it’s website. Make sure that you install the Zip Package only, otherwise, the below given steps won’t work.

2. Now, Extract the Zip package to a Directory on the Harddrive of your Server. (It is recommended that you extract the files to C:\PHP and the below steps are given assuming that you have done the same)

3. Right click My Computer and select Properties from the Start Menu after you have added C:\PHP to your path. Once done, Click Environment Variables button from the Advanced tab.

4. Now find Path and Edit it (You will find Path under System Variable). Add the semicolon (;) at the End of Variable Value and finally add C:\PHP.

windowsserver20031-300x118 Install PHP5 on IIS 6 - Windows Dedicated Server

5. It is necessary to Configure IIS now. You can do this by opening the Internet Information Services (IIS) Manager from Administrative Tools.

6. Now, configure Web Service Extension and Web sites according to the steps given below :

Web Service extension – Add New Web Service Extension once you right Click on the Web Service extension Folder. Keep the Extension Status to Allowed after you have setup the Extension Name to .PHP and added C:\PHP\PHP5ISAPI.DLL to the Necessary Files.

Web Sites – Right click once you have selected the “Websites” folder and select Properties. Click the Configuration Button from the Home Directory Tab. Now add an Application Extension after clicking Add. Add PHP as Extension and Execute C:\PHP\PHP5ISAPI.DLL. The other settings should be left as the same.

Click OK and proceed.

Now PHP5 is installed on your Windows 2003 Server.

You can follow the steps given below to check the PHP installation :-

a) Create a file with PHP Extension. For exam: xyz.php.

b) Add the following lines of text and then save the file into your website directory.

Example : C:\INETPUB\WWWROOT

c) Finally, use your browser to read the file. example : http://localhost/test.php

No responses yet

Trackback URI | Comments RSS

Leave a Reply