17

I have a "small" problem with my WAMP Server. Everything worked fine (WAMP is on port 8081 - free port no matter what program I have open) yesterday but today, I can't reach localhost:8081. It's just keep loading and loading and loading...

I have tried everything - open the port in my router and in my firewall, check that the port is currently open and reachable (which it is) and so on. I installed the latest Windows updates to Windows 7 Ultimate 64-bit earlier this day, restarted my computer and boom - I can't reach localhost:8081. It worked perfectly before I restarted the computer.

The updates was KB2620704, KB2588516, KB2617657, and KB890830.

Please, help me! I'm literally dying inside if I can't work with my website. I have tried XAMPP too. Apach didn't wanted to be loaded (as usual) so I uninstalled it. I have even reinstalled WAMP Server 2 times since this happened. Even run CCleaner after each uninstall so everything with WAMP was gone before I installed it again.

starball
  • 20,030
  • 7
  • 43
  • 238
Airikr
  • 6,258
  • 15
  • 59
  • 110
  • I have even tried to change the port from 8081 to 80, 8080, or another port, but it doesn't work anyway. My hosts file in Windows contains only "127.0.0.1 localhost" without ". No comments or anything though, because I didn't have this file in Windows/System32/drivers/etc or anywhere else, so I created it. – Airikr Nov 12 '11 at 04:25
  • what'S the error log say? have you tried to get a network tool or something to check what kind of request you get? – Book Of Zeus Nov 29 '11 at 03:13
  • @BookOfZeus One of (or the only) creator(s) of WAMP Server connected to my computer via TeamViewer few weeks ago and tested everything he knew can cause some problems to WAMP. Nothing worked, so I reinstalled my operating system and now everything works again. – Airikr Nov 29 '11 at 20:03
  • I got the solution : http://stackoverflow.com/questions/6246938/why-doesnt-http-localhost-load-anything-with-wamp/16946208#16946208 – badal Jun 05 '13 at 17:30

3 Answers3

40

Solution(s) for this, found in the official wampserver.com forums:

SOLUTION #1:

This problem is caused by Windows (7) in combination with any software that also uses port 80 (like Skype or IIS (which is installed on most developer machines)). A video solution can be found here (34.500+ views, damn, this seems to be a big thing ! EDIT: The video now has ~60.000 views ;) )

To make it short: open command line tool, type "netstat -aon" and look for any lines that end of ":80". Note thatPID on the right side. This is the process id of the software which currently usesport 80. Press AltGr + Ctrl + Del to get into the Taskmanager. Switch to the tab where you can see all services currently running, ordered by PID. Search for that PID you just notices and stop that thing (right click). To prevent this in future, you should config the software's port settings (skype can do that).

SOLUTION #2:

left click the wamp icon in the taskbar, go to apache > httpd.conf and edit this file: change "listen to port .... 80" to 8080. Restart. Done !

SOLUTION #3:

Port 80 blocked by "Microsoft Web Deployment Service", simply deinstall this, more info here

By the way, it's not Microsoft's fault, it's a stupid usage of ports by most WAMP stacks.

IMPORTANT: you have to use localhost or 127.0.0.1 now with port 8080, this means 127.0.0.1:8080 or localhost:8080.

Andrea
  • 11,801
  • 17
  • 65
  • 72
Sliq
  • 15,937
  • 27
  • 110
  • 143
  • i have to add something: you can also simply deinstall the IIS software ("internet information service") and skype via: Control Panel -> Programs and Features -> "IIS" or "Internet Information Service" – Sliq Apr 28 '12 at 18:38
  • 4
    I had the same problem described above and i tried the SOLUTION #2 proposed by Panique and jv42 and then i tried localhost:8080 It worked well. Thanks a lot guys. – Access2020 Nov 28 '12 at 09:53
  • Avast Antivirus was causing my problem, thanx! – mbwasi Feb 05 '13 at 13:47
  • "Microsoft Web Deployment Service" Helped me. Tnx – iSenne Sep 09 '13 at 17:26
10

I faced a similar problem. I tried everything with ports, hosts and config files.But nothing helped.

I checked apache error logs. They showed the following error

(OS 10038)An operation was attempted on something that is not a socket.  : AH00332: winnt_accept: getsockname error on listening socket, is IPv6 available?

Finally this is what solved my problem.

1) Goto command prompt and run it in administrative mode. In windows 7 you can do it by typing cmd in run and then pressing ctrl+shift+enter

2) run the following command: netsh winsock reset

3) Restart the system

FastFarm
  • 409
  • 1
  • 6
  • 21
CoderP
  • 1,361
  • 1
  • 13
  • 19
4

Change the port 80 to port 8080 and restart all services and access like localhost:8080/

It will work fine.

Tharick
  • 81
  • 7