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”.

How To: Fix WAMP MSVCR110.dll Not Found or Missing Errors

MSVCR110DLLThere are more than one ways to resolve the issue of missing MSVCR110.dll on WAMP  server. The most common error message which occur while installing WAMP is This application failed to start because msvcr110.dll was not found. Re-installing the application may fix this problem.

Some of the most common reasons for this error

  1. There might be an issue with Windows Registry.
  2. You PC might be infected with some Malware.
  3. There might be a hardware failure.
  4. You might be installing a program that might have corrupted the MSVCR110.dll

How to fix the error

  1. Download the Visual C++ Redistributable for Visual Studio 2012 Update 4 package and run it. This will replace/restore the msvcr110.dll with the most recent copy provided by Microsoft. You will need to select the download based on the version of Windows installed on your PC. For example: x86 (32-bit) or x64 (64-bit). This solution will resolve the issue most of the times. For downloading the Visual C++ Redistributable CLICK HERE
  2. Run a malware/virus scan with you antivirus. It’s even possible that the msvcr110.dll error you’re seeing is related to a hostile program that’s masquerading as the file. Running a malware/virus scan will resolve this issue.
  3. If you think you might have accidentally deleted the msvcr110.dll then you might find it in Recycle Bin.
  4. Repair your Windows installation. If the individual msvcr110.dll file troubleshooting advice above is unsuccessful, performing a startup repair or repair installation should restore all Windows DLL files to their working versions.

Notes

  1. Do not download msvcr110.dll from a “DLL Download” website. They might contain virus. Try to get form a legitimate source.
  2. If you cannot access Windows normally due to msvcr110.dll error, try restarting Windows in Safe Mode.

 

Parse.com Retrieving Objects Using PHP CURL

If you have already created and object, you can retrieve its records by sending a GET request to the object URL.

For this tutorial I will assume that you already have an Parse.com account. Follow the below mentioned steps to get an Application Id ans REST API key:

  1. Sign In to Parse.com
  2. Move to Dashobard
  3. Create a New App
  4. Copy Application ID, Client Key and REST API Key

The code below will send a PHP CURL GET request to REST API of Parse.  You have to place you Application ID and REST API Key with the placeholders. You can run this code on a PHP server

The response body is a JSON object containing all the user-provided fields, plus the createdAt, updatedAt, and objectId fields. A sample response body is shown below:

If the object you are retrieving have pointers to children,  then you can fetch child objects by using the include option. For example, to fetch the object pointed to by the “game” key: