Forum Moderators: phranque

Message Too Old, No Replies

Im trying to show a .php page in my browser but I just can download it

         

tirengarfio

8:26 pm on Aug 15, 2009 (gmt 0)

10+ Year Member



Hi,

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

g1smd

8:46 pm on Aug 15, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Use Live HTTP Headers to see what the MIME type is.

tirengarfio

6:54 pm on Aug 17, 2009 (gmt 0)

10+ Year Member



Are you talking about MIME type of the file(s) or the MIME type of the server?

jdMorgan

9:45 pm on Aug 17, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What MIME type is returned with the .php file when it is displayed?
AFAIK, servers do not "have MIME types," only files have MIME types.

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