Page 1 of 1

Xampp doesn't work!!

PostPosted: 28. April 2009 12:55
by gbmpereira
Hi.

I installed XAMPP on my Windows Vista Home Premium, in the folder C:\XAMPP
The localhost is not working, in any browser...
And when I open the XAMPP Control Panel, just Apache is running, although I put MySQL as a service too.

It is probably a newbie question, but what could be the problem??

Thanks

Re: Xampp doesn't work!!

PostPosted: 28. April 2009 12:58
by Sharley
Would you please delete your other post in the German language forum.
Thanks.


Can you access the XAMPP Welcome page using http://127.0.0.1 in your browser?

Re: Xampp doesn't work!!

PostPosted: 28. April 2009 13:04
by gbmpereira
Sharley wrote:Would you please delete your other post in the German language forum.
Thanks.


Can you access the XAMPP Welcome page using http://127.0.0.1 in your browser?


Sorry I didn't want to post there.
Yes I can!! So it works... why can't I use localhost?

Thanks

Re: Xampp doesn't work!!

PostPosted: 28. April 2009 13:11
by Sharley
There is an IPv6 entry in the Windows host file that Apache can't use which is causing it not to recognize localhost.

Go to C:\Windows\system32\drivers\etc\Hosts file and open it in your text editor (in Vista right click on the Notepad link and select to run as administrator which will eliminate an error when trying to save the Hosts file).

Find this line:
::1 localhost

Comment it out so it looks like this:
# ::1 localhost

Make sure that you now have these 2 lines at the beginning of the uncommented section of your Hosts file:
127.0.0.1 localhost
# ::1 localhost


Save the file and then try http://localhost again.

Kindly let us know if that fixes the localhost issue and if you still have issues with the MySQL not starting.