954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

php code & the local host

I downloaded the php. MySQL and the apache but, I am facing a problem in which the code is being displayed and not the web page. There must be a configuration problem.
Any help would be much appreciated.

techsavi
Newbie Poster
1 post since May 2011
Reputation Points: 10
Solved Threads: 0
 

What did you do? Did you follow some sort of guide?

twiss
Veteran Poster
1,005 posts since Apr 2010
Reputation Points: 177
Solved Threads: 101
 

What OS are you using? setup differs on linux, windoze and so on. Look up "installing LAMP on " in google and you should find complete instructions. I have to say that trying to do it on windoze is a bit of a nightmare as i recall

tiggsy
Junior Poster
119 posts since Jul 2009
Reputation Points: 16
Solved Threads: 8
 

Assuming that PHP and Apache are working correctly (and they may not be) then this is likely caused by trying to run PHP code from a module that doesn't have a .php suffix. For this reason or because of your setup, the module isn't being processed as a php module.

chrishea
Nearly a Posting Virtuoso
1,428 posts since Sep 2008
Reputation Points: 210
Solved Threads: 230
 

If you are using windows, it may be worth installing a virtual machine to run your lamp installation in. I remember trying to get it to work in windows a few years ago when I was still using it, and as I recall, I had similar problems, and never did work out how to fix them.

tiggsy
Junior Poster
119 posts since Jul 2009
Reputation Points: 16
Solved Threads: 8
 

Hi,

why don't you use Xampp server it has inbuilt php and mysql database.
you don't need to configure php and mysql database in it.

you can download it free from here : http://www.apachefriends.org/en/xampp.html

Gajendra

sainigks
Light Poster
35 posts since Aug 2010
Reputation Points: 10
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: