php5.2.4 and IIS installaiton
I had installed php 5.2.4 window installer before but it did not work so I uninstall it from Add and Remove Control panel.
This time I followed the instruction of Installing PHP 5 on IIS in 5 simple steps which is written by brashquido and all the php 5.2.4files and pecl5.2.4win32 binaries files are installed.
But it still does not work.
My computer is window XP Pro and IIS 5.1.
IIs itself is working fine.
I made a simple file call test.php. The code is as followes.
This page was created at
<?php
echo date("h:i:s a", time());
?>
on the computer running PHP.
I saved it in wwwroot folder and tested it in Internet Explorer as http;//localhost/test.php
The word is there but the time is not showing.
I checked the instruction many times so that I did not make a mistake.
In the instruction it said to install php5 or php 5.2.1. Mine is php5.2.4.
I suppose it does not make any difference.
Also this time the php is not in add and remove control panel but I suppose it does not make any difference as long as all the file is php folder.
I have run out of idea why it does not work.
Can anybody suggest what I am doing wrong?
Thank you very much
Pepe
- 1208 reads
I have just sort out the problem.
When I add php in Application mapping ( IIS-right click default website-home directory-configuration-application mapping-add ), I right click website instead of default website.
It is working beautifully now.
Brashquido's article whichi is called Installing PHP 5 on IIS in 5 simple steps is fantastic.
It is so easy to follow even my first language is not English.
I was almost given up the idea using PHP.
Thank you very much.
pepe
Glad you got it sorted Pepe. It sounds like you're problem was to do with IIS metabase inheritance. The metabase is a hierarchical structure and by default all application mappings are inherited from the root. However if you make a custom application mapping then this inheritance chain is broken, which means that when you add new application mappings at the root they do not apply to locations in the metabase where the inheritance has been broken. This can be somewhat confusing as these custom application mappings don't necessarily show up in the IIS Admin MMC as an editable property. I actually think this might be a good idea for a guide...
----------------
Dominic Ryan
3 x Microsoft IIS MVP, MCSE, MCSA
IIS Aid owner/webmaster
Hai I m new to this site also new to PHP, I m on the way to learn php
your guidance gave me practical way to install php
now I ve doubt about how to see the uploaded data through php , now its using the iis server. after giving the code to upload some files through php I m not abling to see the file where it is saved. can u tell me how it can be showed
- mansoor
Hi Mansoor,
Make sure IIS has write permissions to the directory where you are trying to upload to.


Joined: 2007-10-16