[SOLVED] Accessing Apache2 via localhost gives a 'file downl

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
steedvlx
Forum Contributor
Posts: 122
Joined: Wed Jun 11, 2003 10:54 pm
Location: Osaka, Japan

Accessing Apache2 via localhost gives a 'file download' box

Post 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,
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post 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
Image Image
User avatar
steedvlx
Forum Contributor
Posts: 122
Joined: Wed Jun 11, 2003 10:54 pm
Location: Osaka, Japan

Post 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
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

make sure you have properly configured MIME types (AddType directives)
User avatar
steedvlx
Forum Contributor
Posts: 122
Joined: Wed Jun 11, 2003 10:54 pm
Location: Osaka, Japan

Post 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.
Post Reply