Page 1 of 1

Accessing Apache2 via localhost gives a 'file download' box

Posted: Sun Jul 25, 2004 5:45 am
by steedvlx
*Sigh*

I thought I had this licked. I even wrote a tut on how to install these things. Anyway, When I installed Apache2, the localhost gave me the standard startup page. SFSG!

Then MySQL and PHP5 were installed and configured per the same instructions that I posted in the tutorials section. I must have flubbed something along the way because this time all I get in response to 'http:\\localhost:80' is a file download dialog box. I have configured virtual hosts, but they were working before.

Has anyone seen this before? If so, please point me to where I need to begin looking for my mistake. (mime error?)

Thanks,

Posted: Mon Jul 26, 2004 1:15 am
by phice
Make sure you have:

LoadModule php5_module "C:\Program Files\Apache Group\Apache2\php\php5apache2.dll"
DirectoryIndex index.html index.php
ScriptAlias /php/ "c:/program files/apache group/apache2/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"


(values changed respectively) inside your apache2/conf/httpd.conf

Posted: Mon Jul 26, 2004 6:57 am
by steedvlx
Yeppers,

Got all that stuff in there.


Side Note: I just configured another server with XAMPP. What a great idea! But, I really don't like the directory structure it gives, plus they took away the apachemonitor in the taskbar in favor a batch files to start and stop the server....Why? And I especially don't like having phpmyadmin exposed at the entry point that way. Even though I can use http authorization, it gives me the heebie jeebies to have it anywhere near the server root. I think XAMPP must be made for local testing servers or something like that. I can't imageine using that structure in a production environment.

Anyway, I still have one computer that is giving me that file download dialog box when accessing localhost. Anymore suggestions on that?

Thanks and sorry for the rambling. Hardly any sleep in 3 days. This project is killing me. Thank God for espresso. 8O

Posted: Mon Jul 26, 2004 7:32 am
by Weirdan
make sure you have properly configured MIME types (AddType directives)

Posted: Mon Jul 26, 2004 11:54 am
by steedvlx
OK, nevermind. I got it...

I reviewed the VHOSTS Documentation AGAIN and kept fixing things until the problem went away. Not sure exactly which edit fixed it. But, at least it's working now.