Author |
|
kinkopy
Joined: 08 Sep 2008 Posts: 3 Location: Georgia
|
Posted: Mon 08 Sep '08 21:24 Post subject: Index files and other HTML documents Download instead open |
|
|
Running newest apache 2.2 With virtual hosts and thats it
Have proper <directory> Options
Whenever I load my domain name in IE or Mozilla I get a download file box instead of a open page
I have updated my Index's to index.html index.htm and index.php
I have not added php module yet but I am planning on it
I upgraded from the older php because it was doing the same thing as this one on this machine. ..
Site name is
http://www.kinkopy.com/
anyone know what might be the problem please help.. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 08 Sep '08 22:25 Post subject: |
|
|
If you don't have installed PHP your server does not know that content a PHP files has. So the server serves it as un-kown and not text/html and the browser download it instead of showing it. |
|
Back to top |
|
kinkopy
Joined: 08 Sep 2008 Posts: 3 Location: Georgia
|
Posted: Tue 09 Sep '08 0:11 Post subject: |
|
|
i know but its just a html file |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 09 Sep '08 12:25 Post subject: |
|
|
You can set in your httpd.conf untill you set up PHP the following
Code: |
AddType text/html .php
|
|
|
Back to top |
|
kinkopy
Joined: 08 Sep 2008 Posts: 3 Location: Georgia
|
Posted: Tue 09 Sep '08 19:47 Post subject: |
|
|
its not a php file though its a .htm file that the webbrowser is trying to download |
|
Back to top |
|
cllison
Joined: 16 Dec 2008 Posts: 2 Location: N.G
|
|
Back to top |
|