Exclusive Affiliate-Only Offer:
$9.99 Domain Names
Drive sales with one of the most aggressive domain offers out there: A domain and professional email account for only $9.99!
This tutorial is about installing PHP 5.2 on IIS 5.1 and 6.0 Web Server running on Windows XP.You can visit the PHP website and download the
file php-5.2.4-Win32.zip for the manual installation.
First step unzip the file in this directory C:\Program
Files\PHP.
Then open the newly created PHP folder
and copy the file php.ini -dist and rename it
php.ini jn the same directory.
To tell PHP to load particular modules
when it starts ,open php.ini with notepad or any text editor
,find extension_dir and change it as extension_dir = "C:\Program
Files\PHP\ext" and then find Dynamic Extension,in this section
there are all the modules Find out which one you need from the
PHP website and to enable it just remove the ";" in front of it.
Now you have to tell Windows where PHP is.Click Start,Right-click
MyComputer and choose Properties/Advanced tab/Envirement
variables A window like below opens,Select Path
by clicking on it and click Edit
Then, Go to the end and type the directory where you installed PHP,in
this case is C:\Program Files\PHP and click OK
Now you are back on System Variables,click New ,in the Variable Name type
PHPRC, in the varable value type the directory where PHP is installed
C:\Program Files\PHP and click OK.This is to tell the System and PHP that php.ini is in
the same directory where PHP is, instead that in the system directory.This
part is very important,when you finish installing and you run phpinfo in
your browser,check in the first part you should be able to read
something like this :
Loaded Configuration File
C:\PHP5\php.ini
where C:\PHP5\php.ini
is the path we are talking about. Don't forget to restart
your computer after this.
Now,you have to do some configuration settings on IIS web server .Go
Start / ControlPanel / Administrative Tools / Internet
Information service Manager.
On the left pane rightclick on WebSites and choose properties /
HomeDirectory Tab,and click on Configuration like in the figure
below.Doing this all the websites in the subdirectories will be
effected.If you want to apply only to 1 website on IIS 6.0,open the
properties dialog only for that specific website righclicking on it and
do the same as for the Wbsites.
In the
Application Configuration dialog click Add
In the Executable type
C:\PHP5\php5isapi.dll , where c:\Php5 is the directory where you have
installed PHP and in the Extension type .php and press OK and close all the
properties windows.
On IIS 6.0 you
also have to add a WEB Service Extension. In the IIS Manager on the left pane
click Web Service Extension and in the right click Add a new Web Service
Extension. .
On the next dialog Box in the
Extension name Type PHP ISAPI and in the Required
Files type C:\PHP5\php5isapi.dll , where c:\Php5 is the directory where
you have installed PHP,and then click Add. Check Set Extension status to
Alllowed..
When you finish the dialog box
should be like the one below.Click OK and close all the windows and restart IIS .
OGo to Start / Control
Panel / Administrative Tools / services and on the right scroll through
the services find IIS and click on it. On the left click on Restart...
Now you ready for the test.,open a new file
with notepad and type:<?php phpinfo(); ?> Save it in C:\Inetpub\wwwroot as phpTest.php not as text file but all
files or it wont work.pen your web browser and type in the address bar http:/localhost/phptest.php
and ,if a page with all the php info appears ,it means that you have php
succesfully installed and running.