apache and mysql start button are disabled in xampp control panel - windows

When I install xampp its working fine. But once after restart/shutdown, It giving this error.
[Apache] Problem detected: Apache not found.
[Apache] Disbling apache buttons
[Apache] Run this program from your apache root directory.
[mysql] Problem detected: mysql not found
[mysql] Diabling mysql buttons
[mysql] Run this program from your apache root directory.
Xampp version: xampp-win32-1-8-3-4-VC11-installer
System configuration: windows 7 32 bit
Note: while install it shows to disable the UAC.
Here is the image:

Try installing as admin and disable your anti virus when installing, you can also disable UAC as well. And always run as Admin when launching by right clicking the .exe and go properties and set "Run as Administrator"

Find the httpd.exe in the specified route.
C:\xampp\apache\bin

first check your xampp folder where apche/bin and mysql/bin is available or not.if it is not available then search it into your drive and put the xampp folder as it is.And last restart your xampp control panel and start the apache and mysql server.

This happened to me yesterday after a crash. It was saying Tomcat was not found, and the buttons were disabled. First thing I checked was if Tomcat was in the Xampp directory and could be started manually. It could, so I started looking for configuration errors. I clicked the config button at the top, then service and port settings, and then the Tomcat tab. I saw immediately that Xampp was looking for Tomcat 7, and that was the problem. I had updated to 8 a long time ago and I guess when the system crashed, Xampp reverted to the default config. I changed that to 8, and restarted Xampp. Problem solved, but the buttons were still disabled. I then discovered that in the xampp-control.ini file, under the ServiceNames section, it said Tomcat=Tomcat7. I changed that to Tomcat8 and restarted Xampp, and the buttons were working again. I would imagine it would be a similar procedure for any of the other modules not being detected. I hope this helps someone.

you placed xampp control on the desktop for a quick start this is the main reason for disabled apache and MySQL button. try to start from install xampp folder.

Related

Error: Apache shutdown unexpectedly - xampp

I have not found the solution to this problem:
Error: Apache shutdown unexpectedly.
This may be due to a blocked port, missing dependencies,
Apache-improper privileges, a crash, or a shutdown by another method.
Apache- Press the Logs button to view error logs and check
Apache- the Windows Event Viewer for more clues
Apache- If you need more help, copy and post this
Apache- entire log window on the forums
I have changed port numbers, dealt with firewall, and even installed the old version of xampp and suitecrm to import and export and nothing.

PgAdmin fatal error. The appllication server could not be contacted

A couple of days before I have installed on my PC with Windows 7 Professional new version of PgAdmin (version 4). It worked fine, but today it loads slowly and then information window appears with text: "PgAdmin fatal error. The appllication server could not be contacted.". I restarted windows, but it doesn't help. Is there any solution of this problem? Thanks.
I had the same issue. Try right clicking the PgAdmin icon and clicking "Run as administrator". Worked for me.
worked for me if I run PgAdmin as administrator.
Right click on the .exe file and run as administrator. It will work.
I tried all options mentioned in link Postgresql can't connect application server through PGAdmin4 .
But none of the options worked, then launching C:\Program Files (x86)\pgAdmin 4\v2\runtime\pgAdmin4.exe from command prompt worked fine.
i got this error using PgAdmin 4 (v4.3) and here is what fixed it for me
right lick on my server and disconnect server
reconnect by clicking expand arrow on the server.
seems my connection was stale
in C:\Users(your username)\AppData\Roaming
delete folder pgAdmin
(AppData - is hidden folder)
run pgadmin with administrator.
Worked Fine for me
Previously it was showing Fatal error
I had to reinstall it, as Steve suggested in comments. Then it started working again.
It's probably best to start with Ray Jowa's solution -- try right clicking the PgAdmin icon and clicking "Run as administrator".
This was odd, my PATH variable which had the python interpreter in it was somehow a factor, I do not completely understand though, right after I removed it everything worked, I will look further into it but so far I think that if you have python interpreter it might be the one causing the issue.
rename your C:\Users<your username>\AppData\Roaming\pgAdmin to .back and restart pgAdmin v4.6x

Upgraded to Windows 10 and now WAMP won't work

I had WAMP working happily on windows 7 as my local development server. Upgraded to Windows 10 today and had an orange WAMP icon on my taskbar. Turns out Windows had installed and ran IIS automatically (why?).
I disabled IIS, restarted, started WAMP and the icon turned green. However, going to localhost results in a connection refused message. I used the 'Test Port 80' option on the WAMP menu and it says that yes, Server: Apache/2.2.21 (Win32) PHP/5.3.10 is listening on port 80.
The Apache error log doesn't display anything helpful.
[Wed Jul 29 17:48:40 2015] [notice] Apache/2.2.21 (Win32) PHP/5.3.10 configured -- resuming normal operations
[Wed Jul 29 17:48:40 2015] [notice] Server built: Sep 10 2011 11:34:11
[Wed Jul 29 17:48:40 2015] [notice] Parent: Created child process 4200
[Wed Jul 29 17:48:41 2015] [notice] Child 4200: Child process is running
[Wed Jul 29 17:48:41 2015] [notice] Child 4200: Acquired the start mutex.
[Wed Jul 29 17:48:41 2015] [notice] Child 4200: Starting 64 worker threads.
[Wed Jul 29 17:48:41 2015] [notice] Child 4200: Starting thread to listen on port 80.
[Wed Jul 29 17:48:41 2015] [notice] Child 4200: Starting thread to listen on port 80.
The Apache access log just displays several instances of
127.0.0.1 - - [29/Jul/2015:17:52:47 -0700] "GET / HTTP/1.1" 302 202
Any hints, clues, questions to ask on how to proceed? Any way to get more details on why the connection would be refused, and what changed in Windows 10 that would cause it?
Search for "Turn Windows features on or off" on the taskbar.
Under "Internet Information Services" deselect "World Wide Web Services" that Microsoft must turn on by default (takes port).
Reboot and WAMP came back up as before.
With some windows updates it might occur the need to repeat this operation
When I upgraded to Windows 10, Wamp had a port problem with Apache.
Run cmd as Administrator, and enter:
iisreset /stop
Then Apache > Service > Install Service will prompt you to press Enter to install as normal.
Once installed Restart All Services and you should be up and running.
You may also need to install: http://www.microsoft.com/en-us/download/details.aspx?id=30679
it's working: Enjoy
1. Go to Start, type in services.msc
2. Scroll down in the Services window to find the World Wide Web Publishing Service.
3. Right click on it and select Stop.
4. Now restart WAMP and you should be good to go.
Remember every time you need to do after restarting your computer... :)
My WAMP icon was RED after upgrading from Windows 8.1 to Windows 10.
I found the solution here: http://forum.wampserver.com/read.php?2,134516#msg-134518
The W10 install will have over wirtten all knowledge of the Apache and MySQL services.
Dont Panic: All you need to do is:
Start WampServer
left click wampmanager -> Apache -> Services -> Install Service
left click wampmanager -> MySQL -> Services -> Install Service
Stop WampServer
Start WampServer
It should be fine now.
I didn't have IIS running, and nothing was using my port 80. Didn't even restart the PC, just the above solved my WAMP issues. Hope this helps someone else!
If other answers not work, try running wampserver as administrator.
Windows 10
My solution:
You have to remove wamp completely, I used REVO Uninstaller which remove all files. Check that there is NO Wamp Folder on the C:/ drive. Empty trash bin.
Go to windows and install all the c++ visuals and updates (for what ever system you have).
Restart machine every time it tells you to, download a fresh wamp and install.
Start wamp, it should go orange.
Go to windows programs (turn features on / off and remove remove IIS service, reboot the machine, restart wamp and bingo it goes green!
I know that this seems along way round but it worked for me after trying all the suggestions on here.
Check you HOSTS file. c:\windows\system32\drivers\etc\hosts you will need admin privileges to edit this file.
It should contain at least these lines without a # comment symbol in column 1 :-
127.0.0.1 localhost
::1 localhost
plus any entries for Virtual Hosts you may have.
Figured it out. I had a static IP before the update. The router port forwarded to it to allow me to use a subdomain of our dns entry to access the dev server. Restoring the static IP configuration solved the problem.
i figured out after many trials that the 32 bit version working perfectly , The 64 version insist not to work
If nothing helped you above like it was the case for me.
Find what is on port 80
netstat -aon | findstr :80
And kill the pid found
taskkill /PID pidFound
example:
taskkill /PID 1852
It was SKYPE...
Have a nice day ;)
If nothing helped you above like it was the case for me.
Find what is on port 80
netstat -aon | findstr :80
And kill the pid found
taskkill /PID pidFound
example:
taskkill /PID 1852
It was Skype for me
If you installed on Windows, its common issue you come up with Wamp server since default windows web services (ie IIS) uses your port which is 80.
You could find it with netstat -aon | findstr :80
Simple solution is finding another port :) within 1024-49151
since the last update of windows in december(approx 21st dec) i was facing some critical problem and not starting apache is one of them.
I was looking for a proper solution since. so i followed following steps
1) checked service and found wampapache64 service was not starting. tried to start manually with different settings but nothing worked
2) tried removing and installing service of apache from wamp menu but didnt work either
3) so i tried the bellow code in cmd(administrative mode)
cd c:/wamp/bin/apache/ApacheX.X.X/bin
httpd.exe -e debug
it started my apache service
(if this dont start then try step 2 again)
even after all this your apache service dont start right click on wamp icon>tools>restart DNS and then restart wamp
(before the windows update i had set static ip, so it was not working when i removed that ip. the above process allowed access to dynamic ip
this will surely work. good luck
I had the same problem on Windows 10 64-bit, running Wamp 2.5 64-bit.
Unfortunately, the above solutions didn't work for my specific problem. Solutions from other sites failed as well.
However, I was able to fix this by uninstalling the 64-bit Visual C++ redistributable for Visual Studio 2012 and installing the 32-bit version in it's place.
I re-installed Wamp, and voila - Problem solved.
Hope this helps.
Windows 10 have the "World Wide Web Publishing" enabled by default, which is occupying port 80.
Check this answer out: https://stackoverflow.com/a/31884592/209532
Try to put on a CD/DVD first I've done that as well it works better cause it sees it as boot
The aswere provide by #rybo11, working like a charm in windows 10.
Follow this steps:
Run cmd like administrator
write this command in terminal: iisreset /stop
Install wamp server 32/64 bit
Enjoy!
I have been reading all the solutions, and honestly I got lost as I am not that technical. This is my solution: click on the vamp icon (left mouse button) and go with your pointer to apache, once you on appache you will see the httpd.conf file. Open this file and look for the nexy line: Listen 12.34.56.78:80 Listen 0.0.0.80 Listen [::0]:80. Change 80 into i.e. 12. Save the file and restart services. Use localhost:12 as url. It works for me.
If you don't have ISS started, and have a same problem...
Try it: In my case, i use Skype and this problem is caused because the Skype use 80 and 443 ports to accept incoming connections aditionals.
In Skype, click in Tools -> Options -> Advanced -> Connections -> set unmarked checkbox (Use 80 and 443 ports for connections...)
Reboot your Windows, and the WAMPSERVER start all services correctly.
be happy!
Activating WAMP after the 2015-2016 update
Right click on "This PC" on your desktop and choose "Manage"
On the left side select the "Services and Applications"
Double click on "Services" in the middle window
Scroll down in the Services window to find the World Wide Web Publishing Service. Right click on it and select Stop.
Now restart WAMP and you should be good to go.
I got a windows 10 64 bit machine. I simply uninstalled the existing 64bit wamp installed, and installed 32 bit after installing VC++ support.
Now it worked for me
EDIT: if you have already installed WITHOUT admin. privileges you need to do a reinstall WITH admin. privileges. Less won't do (at least for me).
What Mohammad Ali Akbari said was the turning point for me, up until that point all I ever got was red. Here's listed my full set of actions (note that some of them might be redundant):
1) download C++ redistibutable like so many others said - I chose 32-bit version (x86) just to be sure as some1 noted it might be an issue using x64
2) make sure IIS is disabled (and no other program occupies port 80) - again as described by so many others (control panel -> programs and functions -> disable or enable windows functions), testable by rightclicking wampserver icon -> tools -> Test port 80
3) I also manually edited the host file c:\windows\system32\drivers\etc\hosts as described by RiggsFolly to uncomment
127.0.0.1 localhost
::1 localhost
4) And finally I ran the program with administrator privileges
Result: instant full green icon :)
Hope it helps, and thank you all for this thread!
easy way to fix click wamp icon than click Apache and from there click httpd.conf and open it and find this line in file
Listen 12.34.56.78:80
Listen 80
change this to
Listen 12.34.56.78:81
Listen 81
now restart wamp services
now in browser window you can access localhost by typing this
localhost:81
Ig you have Skype running close it and restart all services!
I install wamp and visual C++ which is required for windows 10 but my wamp is orange. I just follow these step.
1 - Left click on wamp icon >> Apache >> Services
2-Click on Install services
3- Stop and restart wamp server
and it turn to green.
one more thing you need to check if you are using skype.
Open skype
1Tool>>Option>>advance>>Connection
Uncheck the port 80 it by default selected.
Setting up WAMP on Windows 10
I struggled with this for 2 days and finally found a very simple solution.
I completely uninstalled WAMP. After messing with it for 2 days, I wanted to make sure to start over with "factory settings."
I downloaded a new copy of WAMP. During the install process it told me that a WAMP folder already existed, and asked if I still wanted to install it there. I said yes.
I opened notepad as an administrator. I navigated to HOSTS file. C:\windows\system32\drivers\etc\hosts
I removed the '#' comment from these 2 lines.
127.0.0.1 localhost
::1 localhost
I saved the file, and bingo! Worked like a charm. WAMP worked exactly as it was supposed to after that. And BTW, I didn't have to change any port settings.
Hope this helps someone else.
I use WAMP x64 version and had an issue of apache not starting, this I fixed by installing Microsoft Visual C++ 2012 Redistributable. After a restart apache was working again.
Left click on the Wamp icon > Localhost.
If this brings up the WampServer page, Apache is running.
If you can't get to the WampServer page, then you should left click on the Wamp icon > Apache > Service.
If all options there are grayed out except Install Service and Remove Service, then click Install Service.
Left click on the Wamp icon > Restart all services.
Click phpmyadmin under the Tools heading. If you get an error like (#2002), then there is likely a problem with your MySQL installation.
Left click on theWamp icon > MySQL > Service.
If all options there are grayed out except Install Service and Remove Service, then click Install Service.
Left click on the Wamp icon > Restart all services.
This fixed the problem for me and I hope it does for others as well.
I have solved this issue by stopping a service
SQL Server Reporting Service(SQLEXPRESS)
and
install apache service.
If you use VMWare -> just go to windows services (type services in search bar)
and right-click on VMware Authorization Service (from list) and at the end select stop. Now try to start apache again.

Why does my XAMPP control panel crash every time I stop apache?

I am trying to enable some extensions in my php. If I want to initiate the changes I have to reset the apache server in XAMPP. But I just keep getting a window that says xampp-control.exe has stopped working and gives me options:
Debug Program
Close Program
Check Online for a Solution and Close Program
No matter which option I choose it will then give me this Application Error:
Exception EAccess in modele 'xampp-control.exe' at 001ABEFE. Access Violation at address 005ABEFE in module 'xampp-control.exe'. Read of address 00000042. I have read that I should just install a WAMPP server. Is there a way I can successfully reset the Apache Server?
Possible workarounds are listed on XAMPP's forum here
There are some possible workarounds:
Enable back the write privileges and to be aware of this potential issue
Modify the ini file with an editor the properties you need or
To run the XAMP Control panel as administrator
Running it as administrator worked for me.

XAMPP doesn't bind to port after installation

I have successfully installed the latest version of XAMPP on Windows 7 but when I try to run XAMPP it displays an error message and instantly closes and nothing happens!
Here is a screenshot:
What do I need to do to run XAMPP?
You have to disable the http.sys service manually via the registry:
Launch RegEdit
Go to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP
Add a new DWORD (32-bit) value
Name it ‘NoRun’ not including the quotes
Double click the new property
In the Value data field type ’1′ not including quotes and click OK
Re-boot your computer
You should now find that Apache will start on port 80!
Its fine! now just open localhost or 127.0.0.1 in a browser. and tell if you dont see the welcome page

Resources