• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 407
  • Last Modified:

Can't open php files served from ubuntu/apache

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?
0
steiner470
Asked:
steiner470
  • 2
1 Solution
 
owner66Commented:
Are you trying to open the file directly, or going to http://servername/filenam.php?
is PHP actually up and running on the server?
0
 
underskyCommented:
try sudo a2enmod php5

also add index.php file, and try simple php script after
0
 
underskyCommented:
also check /etc/apache2/sites-available/

your directory settings must be like this:

      <Directory />
            Options FollowSymLinks
            AllowOverride All
            Order allow,deny
            Allow from all
      </Directory>
0
 
steiner470Author Commented:
Well done, that fixed it
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now