Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

localhost not found (xampp)

On a fresh install of Windows 7 and Xampp I am unable to access localhost. It just says not found even though Apache and MySQL are running just fine. What I tried so far:

  • check the hosts file for this line: 127.0.0.1 localhost
  • check Skype (removed it completely).
  • checked for anything else like Skype that could have caused a problem
  • turned off virus scanner and firewall

I'm lost here, does anyone has a clue what the problem could be?

[EDIT]

I figured out the problem. For some reason Apache was using port 85 instead of 80. I changed Listen 85 to Listen 80 in the config file from Apache. All is good now.

like image 300
Prd87 Avatar asked Jul 28 '12 13:07

Prd87


People also ask

Why localhost is not working in XAMPP?

Resolve Apache port conflicts by changing your listening port to 8080. Include the listening port in the address when accessing localhost. Change your MySQL port to 3307 if another application is blocking the default port 3306.

How do I fix localhost not found?

Change the Listen port number to 8080 and the ServerName to localhost:8080 . Now you can save and close the file. At this point, you can restart the Apache server and attempt to access localhost:8080 (or whichever port you're using) in your browser.


1 Answers

i faced the same problem. opening the localhost with specific port number is what resolves the problem. in my case i had changed the listen port to 8081 from default 80. So browsing http://localhost:8081 works well for me. Hope it helps.

like image 125
Dev Avatar answered Oct 21 '22 04:10

Dev