wamp

WAMP does not start

A lot of time you might face a trouble that WAMP will not start. The Wamp icon may be red or yellow prompting that there is some trouble in starting the WAMP properly. Sometime even the icon is green but the WAMP would not run even then.

What is WAMP?

Wamp is package of services (Apache, Mysql, etc.) running on your computer. All these services (Apache, Mysql, etc.) use certain ports to run. If the port required by a service is being already used by some other service, then the WAMP will give you a warning by making the WAMP icon appear either in red or orange color.

Solutions

How to solve Apache port conflict:

If the issue is related to the Apache port conflict, we can resolve it by changing the default Apache port (Port 80) to some other port number. To do so please follow the steps given below:

  • In the systems tray at the bottom right of your window left-click the orange WAMP icon.
  • Go to the Apache option.
  • You can see the httpd.conf  option. Left-click on it.
  • Search for a line that says “Listen 80” and change it to “Listen 81”.
  • Now left-click the orange WAMP icon and choose “Restart all services”.

httpconfig

If the WAMP icon turns green then you had the Apache port error and it has been resolved. But you will have to use http://localhost:81 as your URL instead of http://localhost.

If you don’t like to use http://localhost:81 as your URL then you have to find the application running on port 80. To do this please follow the steps given below:

  • In the systems tray at the bottom right of your window left-click the orange WAMP icon.
  • Go to the Apache option.
  • You can see the Service  option. Left-click on it.
  • Click “Test Port 80”.

testport80

A command prompt window will open. This window will show if the Port 80 is being used by Apache or not.

port-check

Now if some other application is running on port 80, we have to find it and close it. Follow the steps below:

  • Press Window+r and type cmd. Press Ok. This will open Command Prompt.
  • Type netstat -aon | findstr:80 and press enter button. This will show all the applications running on the port 80.
  • Here you can also see the PID of the application running on the port 80.

netstat

Now when you have found the culprit , the next step is to close the application running on port 80.

  • Right click on you taskbar. Click on the Task Manager option.
  • Click the details tab.
  • Here you can see the PID column. Search your culprit service.
  • Right click on the service and press End Task.

Once the conflicting application is stopped, you can now try to start the WAMP and it will hopefully work fine.

How to solve MySQL port conflict:

Apart from Apache port conflict MySQL port conflict is another common cause on WAMP not working. If you are facing any such issue please follow the following steps to resolve the issue.

  • Press Window+r and type cmd. Press Ok. This will open Command Prompt.
  • Type “Services.msc” and press enter.
  • Sort the columns by name and look for “wampmysqld” or  “wampmysqld64or “MySQL”.
  • If the status of the process is running, double-click it and press the “Stop” button on the dialog box which appears.
  • Click Ok.
  • On the System Tray left-click on the WAMP icon and press “Restart all services”.

Leave a Reply

Your email address will not be published. Required fields are marked *