logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Index files and other HTML documents Download instead open
Author
kinkopy



Joined: 08 Sep 2008
Posts: 3
Location: Georgia

PostPosted: Mon 08 Sep '08 21:24    Post subject: Index files and other HTML documents Download instead open Reply with quote

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: 7355
Location: Germany, Next to Hamburg

PostPosted: Mon 08 Sep '08 22:25    Post subject: Reply with quote

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

PostPosted: Tue 09 Sep '08 0:11    Post subject: Reply with quote

i know but its just a html file
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7355
Location: Germany, Next to Hamburg

PostPosted: Tue 09 Sep '08 12:25    Post subject: Reply with quote

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

PostPosted: Tue 09 Sep '08 19:47    Post subject: Reply with quote

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

PostPosted: Tue 16 Dec '08 3:47    Post subject: Reply with quote

Check ur installation again.
For clarity follow the link:
http://www.visionmasterdesigns.com/tutorial-installing-apache-php-5-mysql-5-phpmyadmin-windows-vista-xp/
Back to top


Reply to topic   Topic: Index files and other HTML documents Download instead open View previous topic :: View next topic
Post new topic   Forum Index -> Apache