WAMP (Windows/Apache/MySQL/PHP stack) is one of the most popular server package that was known to man.
It's popularity is due to widespread use of Windows Operating System on which WAMP is meant to be deployed.
However, like any other software in this planet, it could sometime not work because of some conditions or some conflict, not as a flaw of WAMP itself but more of the setup of the user's OS.
Common factors are:
HTTP Port conflict
Some services under WAMP, needs it's own port, so that other software (even running in localhost) is able to communicate with it. Commonly, Apache uses 80 and MySQL uses 3306.
Common symptom of this issue is, when you click any WAMP menu, it will pop-up a dialog
"Could not execute menu item (internal error) Could not perform service action"
or
The WAMP icon starts, but kinda stuck with the yellow icon and never turns green
This might be the first thing you need to look for, check your firewall (either built-in or anti-virus) and make sure those ports are open and has capability to serve incoming requests.
Another common scenario is, other programs might be using port number 80 (Skype for example) and 3306 (very rare to happen). But the thing is - check if those port numbers are being used.
Apache in WAMP has it's own tool for checking if port number 80 is in use.
Click the WAMP icon in the taskbar > Apache > Service > Test Port 80
Another thing you can do is, edit the httpd.conf file, change the value of "listen" directive to other values aside from 80 and check it out if it worked.
XAMPP when installed along WAMP can also cause issue, same is true if Apache standalone service is already installed before you install WAMP.
You re-installed WAMP but with the old configuration file still intact
Sometimes, we tweak with the configuration files of each services or enable/disable some modules on it and we might found ourselves with a broken WAMP install.
Some might resort to just uninstalling the WAMP program itself, then just re-install it. The catch is, that doesn't work all the time. The surefire method is, after uninstalling WAMP, delete the whole folder of it in c:\wamp in your hard drive. It will ensure that no old configuration file was being used.
Low User Account Privilige
This is a very rare scenario. Apache and MySQL service requires some higher privilige Windows User Account to carry out it's task, by default, each time you run the WAMP service manually, Windows will prompt you to grant an access for it to run since it is trying to execute routines with a higher priviliges, make sure you either run the WAMP service using an Administrator account or an account with higher privilige.
When you reached this point and you still can't figure out why you'r wamp service is not running properly, other things that you could try is:
- uninstall Skype or XAMPP or IIS
- get an updated installer from the WAMP website
- try both http://localhost and http://127.0.0.1 in your browser
- try tweaking the port number of Apache with random port numbers
- open a command prompt, type netstat -aon, get the PID number for the row which is using the Port number 80, then Start Task Manager and look up which program is that (Whatever program you will find other than Apache, uninstall it)
Commonly, WAMP issues were solved by all those stuffs, if it happens that you still cant get it working, feel free to leave a comment here and I'm willing to help you out.
Did you find this useful?
I'm always happy to help! You can show your support and appreciation by Buying me a coffee (I love coffee!).