Reputation: 3599
Currently i am using Wamp 2.5 version.
This is what the setup i have installed: wampserver2.5-Apache-2.4.9-Mysql-5.6.17-php5.5.12-64b.exe
The wamp is set to orange, checked with port: 80. Earlier it was used by SQL services. Stopped all SQL, now its been used by:
But still i am not able to get wamp to change green.
I have enough googled, but still could not solve this. Anybody had this issue earlier and resolved?
I have Visual C++ 2012 framework of 64bit and 32bit installed into my system.
FYI: System is running in LAN
Following is the error i get when i debug:
Upvotes: 1
Views: 1279
Reputation: 94642
If the wampmanager icon is Orange, and when you check port 80 it says that Apache is using it (which it does as per the info on your question) then it is the MySQL service that has not started.
If you have previously tried installing Apache/MySQL/PHP manually i.e. not WAMPServer or XAMPP then there is probably a rouge my.ini or my.cnf file on your system.
Do a search for my.ini
and my.cnf
across your whole C: drive. If there is a rouge my.ini
it is probably in C:\windows
but check the whole of C: just to be safe. If you find one of these files anywhere other than in the \wamp\bin\mysql\mysqlx.y.z
folder structure delete it.
There is a search order that mysql uses to find a my.ini and it is
%WINDIR%\my.ini, %WINDIR%\my.cnf
C:\my.ini, C:\my.cnf
INSTALLDIR\my.ini, INSTALLDIR\my.cnf
Additional Info
Also look in the registry, if you had used a mysql .msi install at some time you may have entries in the Registry like this
HKEY_LOCAL_MACHINE\SOFTWARE\MySQL AB
Or if using 64bit Windows
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MYSQL AB
WampServers install does not use these so they are unnecessary and this coudl also be confusing MySQL as to where it gets its ini file from.
Also have a look at the Windows Event log using Windows Event Viewer
if MySQL fails to start before it can write to its own log file, it will write errors into the Event log.
Additional Info 2
I just looked at the image you linked to.
You have another MySQL installed. Theres no point having 2 MySQL Servers installed, and they will always get in each others way unless you really know what you are doing.
If you are not using the other version of MySQL Server, uninstall it.
Alternatively, using the services snapin services.msc
at least disable the other MySQL.
I would bet that that service has already grabbed port 3306 (the MySQL default port) so thats why the MYSQL in WAMPServer is not starting.
WAMPServers MySQL Service is called wampmysqld
or wampmysqld64
The default used by your other installed MySQL is probably just MYSQLD
Upvotes: 0
Reputation: 278
This can be a issue sometimes due to an installation of TeamViewer or Skype on the same machine.
You can Change the Port of Apache by Opening Notepad with Admin Rights. Open File
path to wamp\bin\apache\Apache\conf\httpd.conf
Change
Listen 80to say
Listen 81 or Listen 8080
And now the Wamp can be accessed from
localhost:81 or localhost:8080
Upvotes: -1