I solved the following way: I changed the reserved port for wampserver from 80 to 8080. I clicked the wamp icon as right button and chose the "tools" option. I chose to change from 80 to 8080. Then the wamp icon turned green, indicating that it was working.
Forum:
WampServer English