Forum Moderators: phranque
im trying to show a .php page in my browser but i cant...The browser only gives me the possibility to download the page.
I have installed on this machine apache2, php5 y php5-cli (apt-get install apache2 php5 y php5-cli).
I have also done this: i have installed these 3 apps (apache2, php5 and php5-cli) in a Ubuntu relase that i have just installed in other computer and i can see the .php web page without problems.
What happens in the first computer?
Ciao
The MIME type of the file will be sent to your browser in the HTTP Content-Type response header, and you can examine it using the Live HTTP Headers add-on for Firefox/Mozilla browsers.
The likely cause of your problem is likely that there is no handler declared on this server for .php filetypes, therefore the file is being served instead of being executed.
See the Apache mod_mime module documentation, and look at the AddHandler and AddType directives.
Jim