I had the same error after installing WAMPSERVER and all necessary C++ distribution packages - the WAMP icon was not turning green from orange.
The error I had was: The service 'wampapache64' is NOT started EXIT error code:1066
When I checked for port 80 (you can check it by right click on WAMP icon on the tray > tools > test port 80),
I found that it was occupied by some other service, may be another webserver such as IIS or Antivirus Service.
Solution:
Change the port to 8080 instead of current 80.
Steps to change the port:
1. Right click on WAMP icon in the tray > tools > Use a port other than 80
2. A new dialogue box will popup with the name of "Port for Apache". Here, instead of 80, enter the new port number 8080 and submit.
3. Refresh and Restart WAMP server. It turned green in my case.
4. Check in the browser [
localhost] now and it should work.
I'm happy with my GREEN ICON NOW
