I am having problems with Wamp Server, the icon will never turn green. It is constantly stuck at orange.
I have tried many ways, editing HOSTS file, .config files, disabling IIS, changing SKYPE's port, quitting SKYPE, disabling World Wide Web publishing services etc... And under wamp server icon > Apache > Test port 80, it states that Apache is using that port.
I am running Windows 8 64 bit and Wamp Server 2.4. Any help would be appreciated.
This question is related to
php
apache
wamp
wampserver
PLEASE NOTE! If you have gone through all of the above, like "I" did, and still get the Orange icon, and, when you test Port 80 you get "Apache", look at the file: c:/wamp/bin/apache/apache2.4.9/conf/httpd.conf (your apache version number may differ).
In the file, about line # 62, you'll find a note saying to fill in this:
Listen 0.0.0.0:80 Listen [::0]:80
Why?
Change this to Listen on specific IP addresses as shown below to prevent Apache from glomming onto all bound IP addresses.
I changed that to match my localhost IP address and when I restarted Wamp, it quickly went from Red to Green. Success!...3 hours later....
Adding to what @Hitesh-sahu said you need all the VC++ redistribution packages for it to turn green. I referred to this thread from wampserver forum. You can install this little tool (check_vcredist) from the tools section here which will check if all the needed dependencies are installed (see attached image) and it will also provide links to missing ones. If you are using x64 version of Windows like I do and your wampserver does not turn green even after installing all the packages then uninstall and do a fresh installation again. Hope it helps.
I ran into this same problem this morning but none of the answers above provided me with the solution.
I realised eventually that my issue was because I had changed the DocumentRoot to a subfolder of the www directory, as I had previously been running a Symfony2 project inside www.
With the new project I am working on inside www, that old DocumentRoot dir did not exist any more so Apache failed to start.
wampserver -> Apache -> httpd.conf, then look for "DocumentRoot" and make sure the directory it points to exists or else change it to one that does.
Thank you to RiggsFolly, it was because of your hint about the Event Viewer above that I found the issue.
If you are using wampserver 3 (recommended, works with no configuration usually)
if this doesnt fix it, try:
right click wampserver icon > Tools > Check httpd.conf syntax (then fix the issue it identifies and restart all services, likely it's bad syntax in your virtual hosts file)
right click wampserver icon > Tools > test port 80 (you likely have skype turned on or something else, turn it off and restart all services)
If this doesnt fix it, maybe have a windows conflict:
If this doesnt fix it:
In case that helps anybody I had the same issue with wampserver3.2.0_x64 on Windows 10 Enterprise.
Tried everything from the answers of this thread and nothing helped.
I then installed wampserver3.1.0_x86 instead and got the green light on first launch. I have no explanation but at least the desired end result.
Please read through the wamp installation carefully, It lists the steps for wamp not turning green clearly. Please read through steps while installing wamp server. It solves most of the bootstrap issues.
Your port 80 is actually used by : Server: Microsoft-HTTPAPI/2.0
Modify ports: It works Appache port from 8080 to 7080 Maria DB port from 3306 to 3307 Mysql DB port from 3308 to 3309
To verify that all VC ++ packages are installed and with the latest versions, you can use the tool: http://wampserver.aviatechno.net/files/tools/check_vcredist.exe Also know the difference between VC++ and VS code
Visual Studio is a suite of component-based software development tools and other technologies for building powerful, high-performance applications. On the other hand, Visual Studio Code is detailed as "Build and debug modern web and cloud applications, by Microsoft".
To add to the above post^^:
If either of the services are not running, it might simply just be because they need to be installed/configured. This is easy to do straight from the WampManager Icon.
WampManager Icon -> Apache -> Service -> Install Service
You should get a command prompt pop-up if port 80 is free (if not, see above post):
'Your port 80 is available. Install will proceed.
Press Enter to continue...'
WampManager Icon -> MySQL -> Service -> Install Service
WampManager Icon -> Restart All Services
The icon should now turn green :)
It can happen because of one of the three reasons:-
1) Missing VC++ installation: Install All versions of VC++ redistribution packages VC9, VC10, VC11, VC13, VC14 and VC15. See the link provided at the end for download link. If you have a 64-bit Windows, you must install both 32 and 64bit versions of each VisualC++ package, even if you do not use Wampserver 64 bit.
2) You forgot to provide Admin Privileges to WAMP Server : Launch and Install with the "Run as administrator" option, very important.
3) WAMP, IIS and Skype fighting over same port :
VC9 Packages (Visual C++ 2008 SP1)
http://www.microsoft.com/en-us/download/details.aspx?id=5582 http://www.microsoft.com/en-us/download/details.aspx?id=2092
VC10 Packages (Visual C++ 2010 SP1) http://www.microsoft.com/en-us/download/details.aspx?id=8328 http://www.microsoft.com/en-us/download/details.aspx?id=13523
VC11 Packages (Visual C++ 2012 Update 4) The two files VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe to be download are on the same page: http://www.microsoft.com/en-us/download/details.aspx?id=30679
VC13 Packages] (Visual C++ 2013) The two files VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe to be download are on the same page: https://www.microsoft.com/en-us/download/details.aspx?id=40784
VC14 Packages (Visual C++ 2015 Update 3) The two files vcredist_x86.exe and vcredist_x64.exe to be download are on the same page: http://www.microsoft.com/fr-fr/download/details.aspx?id=53840
VC15 Redistribuable (Visual C++ 2017) https://go.microsoft.com/fwlink/?LinkId=746571 Visual C++ Redistributable Packages for Visual Studio 2017 x86 https://go.microsoft.com/fwlink/?LinkId=746572
Wamp server default disk is "C:\"
if you install it to another disk for ex G:\
:
go to
g:\wamp\bin\apache\apache2.4.9\bin\
2 .call cmd
3 .execute httpd.exe -t
you will see errors
go to
g:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-autoindex.conf
change in line 23 to :
Alias /icons/ "g:/Apache24/icons/"
<Directory "g:/Apache24/icons">
Options Indexes MultiViews
AllowOverride None
Require all granted
</Directory>
After removing the innodb_additional_mem_pool_size=4M from my.ini and killing that process that used the port that Mysql wanted I managed it to go.
Suggested fix: 1) The quick solution: Comment the line innodb_additional_mem_pool_size=4M in the service's 'my.ini' file, 2) exclude the option from the 5.7.4 default config file or 3) un-unknow the variable to mysql ;)
link: http://bugs.mysql.com/bug.php?id=72533
Use number 1, remove the whole line. Save to my.ini. Kill the process if you have one running (look at them with resmon.exe and kill them with command taskkill /pid pid-of-process /f), then start wampmysql and your icon should turn green.
Regards SB
If you have installed both Wampmanager and also Bitnami's wampstack on your Windows box (like I had done), make sure Bitnami has not been set to automatically start its wampstackApache and wampstackMySQL services at startup.
To check/fix this, click: Start-->Run and then type services.msc and click Ok.
Select Services in the list on the left and sort the services on Name. Scroll to the "w's". If wampstackApache and/or wampstackMySQL services are already started, right-click and stop both. Then Restart All Services from the Wampmanager W icon in the windows desktop services tray. The W should go green.
If this was your problem you can change the default startup behavior to manual start wampstackApache and wampstackMySQL in their Properties tabs.
3306
and change it to 3307
Source: Stackoverflow.com