cant get it to work =(
Posted by: ZIre (---.tbcn.telia.com)
Date: October 14, 2006 07:21PM

installed wamp and everything, got the apache server running and mu php file in the right location. When i go to localhost/phpinfo.php it asks me what program i want use, like i had downloaded the file. Why is that?

Options: ReplyQuote
Re: cant get it to work =(
Posted by: yfastud (---.cable.mindspring.com)
Date: October 14, 2006 11:43PM

What do you mean "php file in the right location"? Provide path and tell us what you did, then we could tell you if it's right or not.

Options: ReplyQuote
Re: cant get it to work =(
Posted by: ZIre (---.tbcn.telia.com)
Date: October 15, 2006 04:28PM

just meant that i put it in the C:\wamp\www folder.

Options: ReplyQuote
Re: cant get it to work =(
Posted by: yfastud (---.cable.mindspring.com)
Date: October 15, 2006 05:59PM

So your file name is phpinfo.php and in wamp/www, then in browser, you type [localhost], and it doesn't work at all? Weird, anyway try to put it in wamp/www/your_new_folder, then try like this

[localhost]

Options: ReplyQuote
Re: cant get it to work =(
Posted by: reyres (---.dsl.pipex.com)
Date: October 15, 2006 11:19PM

I have exactly the same problem as ZIre.

I've just downloaded and installed the latest code from wamp5.
If I try to load the index.php in the www root directory my browser (Firefox and IE) presents a screen for me to open (or save) the php file. It would seem that Apache is not running the php file but passing it through to the browser.

Similarily if I create my own simple html which call a php file on 'submit' , the browser receives the php file and tries to open it.

Any ideas on how to resolve this problem would be appreciated.



Bob

Options: ReplyQuote
Re: cant get it to work =(
Posted by: reyres (---.dsl.pipex.com)
Date: October 15, 2006 11:42PM

OK .. I found the problem.

In the Apache server httpd.conf, file the PHP loadmodule line is commented out. duh!

LoadModule php5_module "c:/wamp/php/php5apache2.dll"

Find the line in the file and remove the # at the beginning of the line.
Save the file and restart the Apache server

"et Bob est votre oncle"



Bob

Options: ReplyQuote
Re: cant get it to work =(
Posted by: ZIre (---.tbcn.telia.com)
Date: October 16, 2006 04:26PM

thanks! working now =)

Options: ReplyQuote


Sorry, only registered users may post in this forum.