We help IT Professionals succeed at work.

Can't open php files served from ubuntu/apache

steiner470
steiner470 asked
on
441 Views
Last Modified: 2012-05-11
I've got ubuntu 8 that I just installed apache2 and php5. I can load html files fine from the server but whenever I try to load a php file it says "what should firefox do with this file?" and wants to save it as a file. I have looked everywhere and tried everything. How can I get php files to open correctly?
Comment
Watch Question

Commented:
Are you trying to open the file directly, or going to http://servername/filenam.php?
is PHP actually up and running on the server?
Dmitriy SkyIT Engeneer

Commented:
try sudo a2enmod php5

also add index.php file, and try simple php script after
IT Engeneer
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Well done, that fixed it
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.