Strange problem with wamp-php rendering on vista
Posted by: renjith4 (---.bethere.co.uk)
Date: November 29, 2008 02:06AM

Hi ,

I installed wamp on my Vista 64 bit machine today and it is causing me a headache. I can start the services apache,mysql etc and can access the phpadmin without a problem. But when i go to any php file under [localhost] it shows a popup saying that ' You have chosen to open a php file. What should firefox do with this file'

then gives two options

Open with the program
Save As

I believe this is due to apache not rendering php properly. But if it can't render php how is phpadmin working without a problem.

For eg c:\wamp\www contains php5_info.php which has the following content
<?php phpinfo();?>

I also tried with short tags like <? phpinfo();?> Which also didn't work


I had a look at the php handlers inside the httpd.conf. they are the following

LoadModule php5_module "c:/wamp/bin/php/php5.2.6/php5apache2_2.dll"

AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3

Can anyone figure out where is it going wrong?

Options: ReplyQuote
Re: Strange problem with wamp-php rendering on vista
Posted by: yfastud (Moderator)
Date: November 29, 2008 03:37AM

did you access your files through localhost? check my guide here for idea

[guides.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Strange problem with wamp-php rendering on vista
Posted by: renjith4 (---.bethere.co.uk)
Date: November 29, 2008 11:34AM

Thanks for your reply.

Yes i did access it through localhost. I tried with 127.0.0.1 too. In my host file there is already a mapping for localhost.

Strange thing is that [localhost] works perfectly ok.

So i am bit perplexed....

Options: ReplyQuote
Re: Strange problem with wamp-php rendering on vista
Posted by: yfastud (Moderator)
Date: November 29, 2008 04:00PM

it sounds like you override the original index.php in www folder which causes that problem

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote


Sorry, only registered users may post in this forum.