php5.2.4 and IIS installaiton

pepe
Posts: 2
Joined: 2007-10-16

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


Average rating
(0 votes)


pepe
pepe's picture
Posts: 2
Joined: 2007-10-16
website and default website for php

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



Brashquido
Brashquido's picture
Posts: 1129
Joined: 2003-09-23
Glad you got it sorted 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

----------------
Dominic Ryan
4 x Microsoft IIS MVP, MCSE, MCSA
IIS Aid owner/webmaster



mansoorbabu
mansoorbabu's picture
Posts: 1
Joined: 2008-05-01
THANK U

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



Brashquido
Brashquido's picture
Posts: 1129
Joined: 2003-09-23
Hi Mansoor, Make sure IIS

Hi Mansoor,

Make sure IIS has write permissions to the directory where you are trying to upload to.

----------------
Dominic Ryan
4 x Microsoft IIS MVP, MCSE, MCSA
IIS Aid owner/webmaster



Post new comment

  • Use <!--pagebreak--> to create page breaks.
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use BBCode tags in the text, URLs will automatically be converted to links.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Copy the characters (respecting upper/lower case) from the image.