PDA

View Full Version : [SOLVED] problem opening php pages



wertyuiop408
July 26th, 2008, 09:13 AM
I have php apache etc all installed ok, but i cant open my php pages in my loacalhost.
Everytime i click the page or link to the page it will ask if i want to download or view the file in a txt format.

ceclauson
July 26th, 2008, 10:14 AM
I had the same problem myself. What I found out was that by default Apache will simply serve any file types that it doesn't recognize, and you need to install some module to get it to recognize and understand PHP, or any other language for that matter.

Here's the thread I had going on Ubuntu forums. I just tried a bunch of stuff, and eventually PHP worked:
http://ubuntuforums.org/showthread.php?t=845916