Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

apache, localhost not working in windows 7

i'm having trouble accessing my localhost: it wont seem to load! chrome says "Oops! Google Chrome could not connect to localhost" and then some suggestions and firefox gives a timeout error. As if they are looking for localhost over the internet. i have also tried 127.0.0.1 with the same result. I have Apache installed and earlier i would get a 404 error. i got rid of that by disabling SQL reporting services (i have MS SQL installed aswell). If i do "Wamp icon>>Apache>>Services>>Test port 80" it says:

"Your port 80 is not actually used"

i have also made sure that

127.0.0.1 localhost

is in the "host" file.

I have been trying to figure out the problem since the past 3 days but havnt been able to find an answer.

I would appreciate if anyone can help. Thank you.

OS: Windows 7 ultimate x64

like image 382
Umar Ali Choudhry Avatar asked Dec 17 '11 16:12

Umar Ali Choudhry


2 Answers

I had the same issue in my windows 7 home basic.

Maybe you could solve by this:

1)Your port 80 is mostly blocked by Microsoft iis server. so if iis is using port 80 than apache wont be able to use the port.

2) So, change the listening port of apache. apache has a file name httpd.conf.Open the file in a text editor and there will be port 80 already written, change the port to 8080 (mostly people use 8080).

3)So now your Apache runs on different port.

4) Restart apache services or restart your wamp server.

5)now Open your local host by, http://localhost:8080

6)you will see your localhost page.

Hope it solved your problem.

like image 172
Arpan Buch Avatar answered Sep 25 '22 00:09

Arpan Buch


If you have Skype running, close it.

like image 23
Marko Avatar answered Sep 23 '22 00:09

Marko