Page 1 of 1

localhost/xampp wont work/ 127.0.0.1/xampp does

PostPosted: 03. October 2009 20:17
by not1337
Hey,

I didn't see any other post with this same exact issue. I created a clean install of XAMPP 1.7.2

I'm running XP
I do have "127.0.0.1 localhost" in my hosts file.
Nothing is blocking port 80. Apache is running on it.
I am able to see php apps on localhost/ e.g. "http://localhost/phpmyadmin/" comes up fine.

But when I try to open "http://localhost/xampp/" I get the "application/x-httpd-php" prompt which doesn't know what to do with the PHP file and wants to DL the source.

If I navigate to "http://127.0.0.1/xampp" I am able to see the page just fine. Which makes this more confusing. I can ping localhost, other pages work, why not this one?

I'm guessing its an httpd.conf issue or one of its includes. Please help.

Thanks.

Re: localhost/xampp wont work/ 127.0.0.1/xampp does

PostPosted: 03. October 2009 20:38
by Wiedmann
I am able to see php apps on localhost/

What happens (can you see) if you access http://localhost/ in your browser?

Re: localhost/xampp wont work/ 127.0.0.1/xampp does

PostPosted: 04. October 2009 04:42
by not1337
nope. Same behavior as localhost/xampp. If I go to http://127.0.0.1 I get the xampp page. If I go to http://localhost I get the php source of the xampp page.

Re: localhost/xampp wont work/ 127.0.0.1/xampp does

PostPosted: 04. October 2009 07:08
by Izzy
not1337 wrote:If I go to http://127.0.0.1 I get the xampp page. If I go to http://localhost I get the php source of the xampp page.
Try this:

Find this IPv6 line in your hosts file, if it exists:
:11 localhost

Comment it out so it looks like this (or delete it):
# :11 localhost

Save the file and try again to access http://localhost.

If it doesn't exists try adding it under the 127.0.0.1 localhost entry, save the file, then try http://localhost again.

Re: localhost/xampp wont work/ 127.0.0.1/xampp does

PostPosted: 05. October 2009 15:04
by alucard01
Maybe apache setting incorrect. Can you please post your apache setting?