localhost not found (xampp)

Viewed 104003

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.

5 Answers

I have faced the same problem. Xampp runs in port 80,443 by default and MySQL at 3306 There may be any other process running on the same port.

  • You cannot run MySQL and XAMPP at the same time. (or MAMP)

  • If you have Skype, kill the skype through the task manager

  • Check which processes are running through port 3306

    Commands for your help

netstat -ano | find "3306" taskkill /PID typeyourPIDhere /F

It may seem silly but check whether you started apache server before starting MySQL. Apache should be in run to open MySQL in localhost.

Related