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:
hosts
file for this line: 127.0.0.1 localhost
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With