Related
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.
Before you can fix anything you need to know which service has not started, Apache or MySQL.
As the TEST PORT 80 utility is saying Apache is running its probably the MySQL service that has not started. Unless you have another Apache running!
So which service has not started???
If the wampmanager icon is not GREEN then one of the services ( Apache/MySQL ) has not started properly.
How to tell which service is not running if the wampmanager icon is orange.
Left click the wampmanager icon to reveal the menu-> Apache -> Service
If the Start/Resume service menu is Green then Apache IS NOT running.
Left click the wampmanager icon to reveal the menu-> MySQL -> Service
If the Start/Resume service menu is Green then MySQL IS NOT running.
If Apache is the service that is not running it is normally, but not always, because something else has captured port 80.
Now do,
Left click the wampmanager icon to reveal the menu-> Apache -> Service -> Test port 80
This will launch a command window and display some information about what, if anything is using port 80.
Whatever it is should be re-configured to not use port 80 or uninstalled if you are not using it.
If port 80 is not the problem look for errors in the appropriate error log ( use the wamp manager menus to view the error logs )
If these do not exists or show no errors then also check the Windows Event Viewer
Start -> Administrative Tools -> Event Viewer
And look in the 'Windows Logs' -> Application' section accessed from the menu on the left of the dialog for error messages from Apache and or MySQL.
If its MYSQL that has not started.
Check the mysql error log by using the menus
wampmanager->MySQL->error log
Check the Windows Event log for messages from MYSQL
Check you dont have another MYSQL Server instance running.
How to Configure SKYPE so it does not require port 80 or 443
Run SKYPE
then using the menus do this:
Tools -> Options -> Advanced -> Connection
Un-Check the checkbox next to 'Use port 80 and 443 as alternatives for incomming connections'
Now restart SKYPE for these changes to take effect.
If you are running Windows 8 SKYPE comes as an app and this cannot ( as yet ) be configured in this way.
However if you uninstall the SKYPE app and install SKYPE in the old way, you can reconfigure it, and it works just as well.
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.
If Apache is not running:
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...'
If MySQL is not running:
WampManager Icon -> MySQL -> Service -> Install Service
Do that for one or both services then:
WampManager Icon -> Restart All Services
The icon should now turn green :)
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.
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>
Restart All services. Done. Resolved
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....
If you are using wampserver 3 (recommended, works with no configuration usually)
click wampserver icon > apache > service administration > install service
click wampserver icon > mysql > service administration > install service
click wampserver icon > mariadb > service administration > install service
click wampserver icon > restart all services
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:
Upgraded to Windows 10 and now WAMP won't work)
If this doesnt fix it:
right click wampserver icon > tools
check all of those for clues
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.
go to C:\wamp\bin\mysql\mysql5.6.17
look for "my.ini"; right click to edit it
use your favorite editor (notepad++, jedit…)
look for 3306 and change it to 3307
restart all the services and it should work :)
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 :
Close Skype or force not to use port 80: http://forum.wampserver.com/read.php?2,134915
Disable IIS: http://forum.wampserver.com/read.php?2,134915
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
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.
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".
I have Windows 7 32 bit and wanted to work on wordpress to host my own page but to do that I got virtual server WAMP Server V 2.5 and after installing it, icon in taskbar was orange and after right and left clicking, there was no menu.
I read many forums, disabled IIS and restarted and nothing. Also uninstalled, deleted directory on c:, installed again but same result, no menu, orange icon. I'm not a tech expert, so pls 'customize' your answers keeping this in mind. I have no idea how to check logs etc So pls let me know.
Much obliged.
Forgot to mention that hovering mouse over icon it says, 1 of 2 services running-server offline. I typed localhost and an IIS image showed up. So, after disabling IIS and restarting, my WAMP icon has disappeared altogether. So I enabled IIS again but the IIS does not check altogether as its 'shaded' (the FTP option is unchecked). After this I restarted and the WAMP icon did'nt show again. This happened yesterday and I reinstalled WAMP as I did now but still nothing. Also inside the WAMP folder, there is no apache folder nor is there any menu display from the WAMP icon on taskbar as mentioned above. Which other way is there to find out about the port my WAMP is using. And I dont have Skype.
I use this way to solve my problem.
Click Wampserver icon -> Apache -> Service Administration -> Install Service -> click on wampserver icon again -> Apache -> Service Administration -> Start/Resume Service.
Done: https://www.youtube.com/watch?v=75FFNArSPvU
I had also that problem, there might be another program running on the same ports, I know skype can be difficult to run with wamp and xammp servers.
Check out if something else is running on same ports and turn skype off = the fix :))
edit: netstat -a -b will show all listening ports and the executable name
If you prefer a graphical version, Microsoft's TCPView will show you the same information, updating in real-time.
http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx
if you have other programmes running on the same ports you will have to change the ports of your virtual server.
I faced the same problem when running the wampserver. The icon was orange (server offline).
Please find the steps I followed to get them working.
Uninstalled IIS to let apache use port 80 (DIDN'T FIX THE PROBLEM)
I changed the apache port from 80 to 8080 in httpd.conf restarting the services and it worked the icon turned green. (FIXED THE PROBLEM)
FIX without changing the port in httpd.conf
Wanted to find which service/application was using the port 80
run your command line as administrator and type
netstat -ab
Displays protocol statistics and current TCP/IP network connections.
Results showed port 80 being used
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING [Can not obtain ownership information]
googling the msg helped me find the service "Web Deployment Agent Service" that was using the port. stopped the service. Updated the httpd.conf to use port 80 again.
Edit : After stopping the service, set its startup type to "Manual" to avoid the problem from reoccurring
Look here for more details : http://benohead.com/windows-port-80-already-use/
Note: I found the "Web Deployment Agent Service" from "administrative tools >> services" (It wasn't listed in taskmanager/services).
Restarted the wampserver and It worked, apache now uses port 80.
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING [httpd.exe]
Did you try switching MySQL ports? If you have another version of mySQL already installed outside of WAMP - you could run into the same problem..
When I tested port 3306 (default sql port) it told me it was being used by 'mysqld.exe' (but not 'wampmysqld64.exe' - WAMP's mysql) which was from a different version of MySQL I had previously installed on the machine and since forgot about.
If the wampmanager menu is not appearing, it sounds like you are missing one or more of the required MSVC Runtime libraries on your system.
There are a number that WampManager/Apache/MySQL/PHP require but as WAMPServer can install Apache versions back as far as Apache 2.22 and PHP version back to PHP5.3.5 it is simpler to make sure you have a complete set.
Please make sure you have the latest version of all of these Microsoft C/C++ Redistributable runtime libraries. You dont need the whole compiler, just these C/C++ runtime libraries.
FOR WAMPServer 32bit
Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)
Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)
If you are using WampServer 2.4 or 2.5 32bit and therefore Apache 2.4.x
Microsoft Visual C++ 2012 is required And select vcredist_x86.exe
Later versions may also require
Microsoft Visual C++ 2014 and select vcredist_x86.exe
Visual C++ Redistributable Packages for Visual Studio 2015 Update 3 and select vcredist_x86.exe
FOR WAMPServer 64bit
Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)
Yes you need the x86 Package regardless as
wampmanager is a 32bit exe even on a 64 bit install
Microsoft Visual C++ 2008 Redistributable Package (x64)
Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)
If you are using WampServer 2.4 64bit
Microsoft Visual C++ 2012 SP1 Redistributable Package And select vcredist_x64.exe
Later versions may also require
Microsoft Visual C++ 2014 and select vcredist_x86.exe
Visual C++ Redistributable Packages for Visual Studio 2015 Update 3 and select vcredist_x64.exe
BIG NOTE
The names of these runtime installs are almosts all called vcredist_x86.exe !!! So download and install them one at a time or you will get very confused.
Once they are installed your 'Programs and Features' should look something like this :-
32bit systems
64bit systems
Have you tried running it on another port? Just changed the port of your wamp server and try again. Google out how to change the port of wamp server etc..
Sometimes there's a service running on the port which is needed by the sql server or apache.
Copy this string and save in a .bat file:
FOR /F "usebackq tokens=5" %%i IN (`netstat -aon ^| find "3306"`) DO taskkill /F /PID %%i
change 'find "3306"' in the port number which needs to be free.
Then run the file as admin. It will kill all the processes running on this port
I had the orange status issue too. Apparently the Apache server that was already running from the previous launch did not terminate properly. Hence I had to kill that through the task manager to get the WAMP server running again.
My Apache service was reporting a fatal error on startup which could be found in the Event Viewer's Windows Logs -> Application. You can find your particular error from the event logs as well, if the checklist of common fixes (like closing Skype) doesn't solve it. My specific error was a syntax error on an alias file I wrote.
I have finally fixed it!!!
If you have installed another mysql server for visual studio or netbeans it will use port: 3306;
But for Wampsever 3 all you have to do is to right click the wamp ORANGE icon then under mysql group click test another port;
it will show you a dialog with port: 3307;
then press OK. Thats it; then the icon will turn GREEN;
Don't forget to say
cout <<"YESSS!" << endl;
I had this same problem, and it ended up being a port conflict.
I opened up task manager, and a Microsoft SQL process was running.
After ending that process and restarting WAMP everything worked fine.
1 of 2 services running.....
Check the directory of your Wamp installation.....Make Sure it is C....it resolves my problem.
I uninstalled previous older version of wamp, and installed both services and started and works.
So I'm starting to use MySQL and phpMyAdmin and I firstly installed Apache2.4. After installing Apache2.4 there were numerous errors so I decided to install XAMPP instead. Now me not thinking through the consequences deleted the Apache2.4 Folder completely along with all its contents.
So now when I start XAMPP, MySQL runs fine but Apache is stuck on "Attempting to start Apache service..." Now when I look at the services tab Apache2.4 is still on my list, I have disabled it but it's made no difference. I have checked through my computer for any remaining Apache2.4 files but I can't find any.
If anyone can help me with this, it would be extremely helpful!
UPDATE: I have restored Apache24 from my recycling bin, should I attempt a uninstall using cmd?
It appears that an instance of apache 2.4 is running on the system. It is probably locking port 80 which the reason why XAMPP apache is unable to start.
Shutdown apache 2.4 from it's control panel, shutdown the service, and ensure there is no "httpd" process running using task manager. If there is kill it.
Once the above are done you should be able to start xampp.
Follow those steps:
1- Uninstall Apache 2.4
2- Clean Windows Registry with a tool like CCleaner
3- Restart Windows
4- Install XAMPP
After I download the WAMP Server, a windows pop out stating:
The configuration file contains a syntax error on line
1235;[EParseError]parameter "service "specifies an unknown service .
I have no idea what type of this problem. Did anyone facing this type of problem? How can I solve this type of problem?
If you're installing WAMP 2.5 and above, you have to make sure that you uninstall any previous version first. Backup your www folder, php.ini, my.ini and httpd-vhosts.conf files.
Then try follow these steps in order to remove the old services:
Launch WAMP server, disregard that it doesn't light green.
Click on the tray icon, then: Stop All Services.
Tray icon -> Apache -> Service -> Remove Service
Tray icon -> MySQL -> Service -> Remove Service
Run command prompt (cmd.exe) and execute the following commands:
sc delete wampapache
sc delete wampmysqld
Then perfom these steps:
Tray icon -> Apache -> Service -> Install Service
Tray icon -> MySQL -> Service -> Install Service
Also make sure you're running WAMP Apache and MySQL server (each setting can be found in corresponding ini file) on other ports if your default port 80 is used for another server and 3306 is used for another database server.
You can try to start/stop wamp server with Command Prompt (Admin)
NET START wampapache
NET START wampmysqld
NET STOP wampapache
NET STOP wampmysqld
I was having the same error when I tried to install the 64bit version of wamp2.5 on Windows 8.1. I tried the 32bit version instead, and it worked (install/run as an Admin).
I had a similar problem. There are ways to solve the problem like copying over the orgional conf and ini file: http://colorsinweb.wordpress.com/2014/04/06/the-configuration-file-contains-a-syntax-error-on-line-0-wamp/
although your one will be different depending what version you use. The best method is to make a back up of your sql database and unistall WAMP (your WWW folder should remain). Then reinstall!
see:
http://forum.wampserver.com/read.php?2,123606
Alternatively, you can follow below steps:
start -> run -> services.msc
find "wampapache" -> Right click -> Start
find "wampmysqld" -> Right click -> Start
If you use wamp on regular basis, it might be a good idea to change "Startup Type" from "Manual" to "Automatic".
Hope this helps.
Note: You must be an admin to perform these operations.
I think You have Downloanded a 32-bit wamp and your system may be in 64-bit.
download for a 64-bit wampsever. It works
Did you install wampserver 2.5?
In WAMPServer 2.5 release notes and corrections it is mentionned:
Do not install this version over an existing version ,
follow the steps :
Installing a new release of WAMPServer
Come to find out, this error is encountered when your wampmanager.ini file is empty. I suspect this may be the effect of an unclean exit of Wamp Server.
Luckily, I had a secondary install of WAMP Server sitting on another machine, so I was able to paste in the following file contents and was back up and running in no time:
Your configuration file can generally be found in: c:/wamp/wampmanager.ini. Please note this configuration file was pulled from WAMP Server 2.5
Reference : http://www.youlikeprogramming.com/2014/12/repairing-your-wamp-configuration-file
This is an issue in wampmanager.ini file. It could have been corrupted. Try and replace the file or copy the code here into your file.
A fresh download and install of WAMP Server works successfully (Apache 2.4.4 PHP 5.4.12).
However as soon as I install a different version of Apache, in this case 2.4 to 2.0 (so I can run PHP 5.2 & 5.4), WAMP goes offline with an orange icon.
If I try to switch BACK to the original Apache version I get this show-stopping error:
Sorry,
This Apache version doesn't seem to be compatible with your actual PHP Version.
Switch cancelled.
Press ENTER to continue...
This doesn't make any sense, as this is a fresh install so both the Apache + PHP versions are the defaults.
Here's what the UI is telling me:
The WAMP icon is now orange
the Apache/Version/2.4.4 icon has a red warning icon next to it
the Apache/Version/2.0.63 icon has a tick next to it
I've tried installing other versions of Apache too, but the issue seems to be with the base 2.4 WAMP installed options.
Extra info: port 80 is free, and I used to use WS 2.0e all the time without these kinds of issues.
Thanks,
Dave
Go To \wamp\bin\php\phpX.Y.Z\wampmanager.conf.
Edit wampmanager.conf via Notepad++
Add This Codes.. And Save wampmanager.conf
$phpConf['apache']['2.4']['LoadModuleName'] = 'php5_module';
$phpConf['apache']['2.4']['LoadModuleFile'] = 'php5apache2_4.dll';
$phpConf['apache']['2.4']['AddModule'] = '';
Restart Wamp Manager..
just had a similar problem - was upgrading WAMP from Apache 2.2 / PHP 5.3 to Apache 2.4 / PHP 5.4
This is what worked for me:
Stop apache service
Remove the unwanted version's apache service using WAMP manager's 'Remove service' option. (check in Windows services if really removed)
Manually edit the 'wampmanager.conf' in the WAMP's installation directory to use Apache and PHP versions you want to use (sections: 'php', 'phpCli' and 'apache' / properties 'xVersion' and 'xLastKnown')
Shutdown WAMP manager
(Re)Start WAMP manager
(Re)Install the wanted version's apache service using WAMP manager's 'Install service' option. (check in Windows services if really installed)
(Re)Start apache service
NOTE: Always run WAMP manager as admin
... After this phpinfo() shows new Apache and PHP versions and seems to work fine.
Hope it helps.
The problem is WAMP version 2.4. I don't know why but v2.4 is not compatible with addons. Then I tried 2.2E. It was fine with addons.
By the way, addons compiled for 32bit. So do not install 64bit Wamp if you think that you would use addons.
When updating WAMP from 2.2 to 2.4 or switching from Apache 2.2.22/PHP 5.3.13 to Apache 2.4.4/PHP 5.4.12, WAMP installs new service as Apache/2.4.4 (Win64) PHP/5.3.13 to make it use PHP 5.4.12
1) Uninstall apache service
2) Modify
C:\wamp\bin\apache\Apache2.4.4\conf\httpd.conf
Change line
LoadModule php5_module "c:/wamp/bin/php/php5.3.13/php5apache2_4.dll"
to
LoadModule php5_module "c:/wamp/bin/php/php5.4.12/php5apache2_4.dll"
3) (Re)Start WAMP
4) Install Apache Service
5) Restart all services
Verify the service description of service wampapache in windows service manager to match Apache/2.4.4 (Win64) PHP/5.4.12
I had this same issue - what I finally did was follow ofzza's and Ankit Sharma's tips, as well as manually removing the directory of the older php version while the services were stopped.
It seems to have worked, except when I call phpinfo() the top heading still claims it's the older version of php even though it's definitely running the newer one. Very strange, but everything is working so I'm fine with it.
The previous installation could be part of the problem. Install WAMP 2.4 in a new directory (It comes bundled with the Apache version you want) & then migrate your www folder.
Directly upgrading has not been error-free for me.
Alternatively, back-up your current version [Databases, config files & www dir], uninstall it and install the new version. Restore your information after