Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Install edPHP on IIS7 - PHP pages won't display

Status
Not open for further replies.

rogerte

Programmer
Nov 9, 2001
164
GB
Not sure if this is the correct forum, but please bear with me.

I have a Vista PC with IIS7(*), and have just used the Web Platform Installer to install PHP.

(* I know some people will say ditch IIS and use Apache, but it is a corporate laptop and they decreee that it must be IIS)

It all seemed to go ok, and as far as I can see (after Googling various web sites) the php.ini seems to be correct - and I have the same ini file in both the PHP and Windows folders.

If I try to call localhost/test.php (just has the usual phpinfo call in it) the browser (IE8, Firefox, Opera, Chrome and Safari) just displays a blank page. In fact if I try to display any php page that is what happens. If I misstype the php pahge name I get the IIS page not found error.

HTML and ASP pages display perfectly.

Any suggestions?

Many thanks

Roger
 
Not sure if you found an answer yet, but the problem is probably in your configuration.

I assume for your php tags you are just using <? and ?>

In order for that to work you need to turn Short_Open_Tag on in your php.ini

To test if this is the case change your <? to <?php and see if it works
 
In the IIS management suite did you add php to your mappings? See Control Panel|Admin|IIS|Default website|Home directory|Configuration and make sure you have added the .PHP extension and a path to the appropriate PHP executable

If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Sorry for delay in getting back, but have been on holiday!!

JoeJack - never use the short form.

johnwm - mappings seem ok.

Will have another investigation later this wekk, when I have caught-up with everything I've missed over the last few weeks!

Many thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top