Can't find localhost at all

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Can't find localhost at all

Postby shuesty » 25. March 2009 16:09

Hey All,

For the past year I've been running xampplite on my computer and working away quite well. Then a couple weeks ago it completely lost it's way to localhost ... all my files are still there ... but it just doesn't get to them. When I type 'localhost' into the address bar it does a google search on the word or sends me to a 'The page you are looking for wasn't found' error page. I've uninstalled and reinstalled many times ... ensured that the apache server is running ... but have gotten no where. Any thoughts?

Shuesty

OS: Vista Home Edition, SP1
Browser: Chrome and Explorer
Computer: Dell Studio 17
shuesty
 
Posts: 1
Joined: 25. March 2009 15:56

Re: Can't find localhost at all

Postby Izzy » 26. March 2009 03:08

Open C:\Windows\system32\drivers\etc\Hosts file in your notepad by right clicking on notepad and selecting run as administrator.

Check that you have this entry at the top of the list of uncommented entries.
127.0.0.1 localhost

If not then add the line as the first line in the list.

If you find this entry:
::1 localhost
then comment it out so it looks like this
# ::1 localhost

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


Note
If you have many entries in the hosts file and you have not added them then perhaps it is time to look for a virus or a Trojan that may be interfering with the hosts file - if you know how then after editing the file make it read only.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Can't find localhost at all

Postby Arséne » 31. March 2009 14:25

it did solve at least my problem, localhost loaded correctly. :) thank you.
Arséne
 
Posts: 1
Joined: 31. March 2009 13:01

Re: Can't find localhost at all

Postby rescofet » 11. April 2009 16:33

Hello Izzy,

I am having the same problem with localhost, I don't have 127.0.0.1 localhost but I do have ::1 localhost, problem is I edit the hosts file with Notepad but Windows don't let me save it, what can I do?

Thanks

p.s.: I am using Windows Vista Home Premium and XAMPP 1.7.0
rescofet
 
Posts: 1
Joined: 11. April 2009 16:13

Re: Can't find localhost at all

Postby Sharley » 11. April 2009 23:37

rescofet wrote:Hello Izzy,...I edit the hosts file with Notepad but Windows don't let me save it, what can I do?
Hi, Sharley here, Izzy is in hospital.

Right click on Notepad and select to run as administrator, then open the Hosts file and do your edits and it should now allow you to save the file.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 140 guests