May 7, 2011

How To Install Php under Windows 2003 Server

1. Download the PHP Installer

Download your favorite php version here: http://www.php.net/downloads.php ,and choose the windows installer

2. Installing PHP

Run the installer and choose Advanced Setup

Choose the path for your PHP installation

Choose the directory for temporary files (it’s recommended to use the default path)

Insert your smtp details

Now choose what kind of errors you want php to show ( Display all errors,warnings and notices is recommended only when you’re developing your website.If you have already completed the developing steps it’s better to choose Display all errors and warnings only).

Now select your webserver (On windows 2003 IIS 6.0 it’s the default webserver).

Select now the extensions you want to be run by php

Now click next to let the installation run on your server. Once the installation is complete reboot the server first.

3. IIS Configuration

Now open IIS,select Web Service Extensions on the left frame and check that PHP extension is allowed.If not click on Add a new Web service Extension and ,for the extension name,choose PHP, And in the required file field choose the isapi.dll file that you’ll find in the php directory.

4. PHP.ini file

Sometimes the installer,due to some permission problems,could not copy the php.ini file in the Windows directory. So select the php.ini file that you’ll find in the php directory and copy it in the C:/Windows directory.

5. Testing

Create a new text file and rename it “index.php”. This file should contain one line that reads:

phpinfo();
?>

Simply copy this file to your web server and open it via your web browser. You should see a page like this one in the following screenshot:

0 comments:

Post a Comment

 

Copyright © 2011 Best WebHosting Tips | Design by Kenga Ads-template