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!
Installing PHP 5.2.10-Win32 on Windows7 32 bit is practically the same as
Vista,but I had few people asking me how to do it,so I wrote a new Tutorial, and I
tested all the steps on a 32bit version,so far.Follow htese steps and I can
guarantee, you'll get it running. .You can visit the PHP website and download the
php version php-5.2.10-Win32.zip
for the manual installation not the windows installer version,As IIS 7 is not installed by default on
Windows7,you will have to install it first,but it's a very easy task and you
can have a look at this step by step tutorial to learn how to do it.How to install IIS 7
on Windows7 Ok,all clear,we can start with the actual steps:
Log on as Administrator
First step ,I have Windows7 installed on D:\ drive,so from now
on I'll mention the system drive as D:\, obviously you will
change it with whatever your drive is. Unzip the
php-5.2.10 file in this directory D:\PHP5 .
Then open the newly created PHP5 folder
and open the file php.ini-recommended with Notepad and and click File .> Save as ,then in the dialog box type only php.ini and in Save as type choose all files
not .txt files as default,remember!!.Save it jn the same directory,this will be the configuration file for the PHP engine.
Fig1
There isn't much to change in the basic
configuration to get it started all you have to do is 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 = "D:\PHP5\ext"
see Fig1 and then find Dynamic Extension,in this section
there are all the modules to be loaded Find out which one you need from the
PHP website and to enable it just remove the ";" in front of it.For example for MySql remove the ";" before "extension=php_mysql.dll "and "extension=php_mysqli.dll". To enable the PHP graphic library remove the ";" before "extension=php_gd2.dll"
See Fig2
Save and close the php.ini file.
Fig3
I know that someone ,at this stage,recommends to copy php.ini and few dll to the Windows/System32 folder,but I believe it's a lot better keep all the files in the same directory,consider if you have to change some setting in the future,and you've forgotten where php.ini is or any other php file.To keep all the files in the same directory you have to tell Windows where PHP is.Click Start,Right-click
Computer and choose Properties a window like below opens,click on Advanced System Settings on the left.
Then,in the window like the one below,Advanced tab and click on Enviroment Variables at the bottom
Fig3
In the Enviroment Variables window,under System variables,
scroll down and look for the variable Path
,click on it to select it and press edit.
Fig4
Fig 5
In the new window(fig 5) on Variable value go to the end, and type a semicolon and the path to the PHP folder.For example," ;D:\PHP5 " .Then another semicolon and the path to the extensions. Example " ;D:\PHP5\ext " When you finish press OK.
You back on Environment Variables(fig
4)..This time click on New because you'll have to create a new variable.A
window like fig 5 opens, this time will be empty, type in the Variable name " PHPRC " and in the Variable value type the directory where PHP is installed "
D:\PHP5 " and click OK .This is to tell the System where php.ini is located,so you can leave all the php files in the same
folder. 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
D:\PHP5\php.ini
where D:\PHP5\php.ini is the path we are talking about. Now press OK and close the
Environment Variables dialog box
Now you should reboot your computer to allow Vista to load the new
setting, but I recommend to finish the second part,first,and then restart Vista.