I'm using XAMPP, and I can start Apache, but, MySQL (PhpMyAdmin) start!
When I start, I get this error;
10:07:49 [Apache] Error: Apache shutdown unexpectedly.
10:07:49 [Apache] This may be due to a blocked port, missing dependencies,
10:07:49 [Apache] improper privileges, a crash, or a shutdown by another method.
10:07:49 [Apache] Press the Logs button to view error logs and check
10:07:49 [Apache] the Windows Event Viewer for more clues
10:07:49 [Apache] If you need more help, copy and post this
10:07:49 [Apache] entire log window on the forums
I search on it, and, change the port of Apache in Config -> Service and Port setting. I have;
Service name : Apache2.4
Main Port : 122
SSL port : 444
I also uninstall Skype (Windows 8/10/Metro version). Nothing Working. In the httpd.conf I have;
Listen 122
ServerName localhost:122
I start it via apache_start.bat and get;
(OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address [::]:445
(OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address 0.0.0.0:445
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs
Please not that all the LOGS files dosen't exsist! Skype is uninstalled.
If you need more informations, please ask me.
In my case it was a simple case of removing IIS because windows 10 comes with IIS pre installed - that conflicts with XAMPP because these both servers try to use the port 80. If you dont want to use IIS and keep using XAMPP
then RESTART
I have fixed this issue with mine as well but what I had to do was change a couple things. I require that on my Win10 machine I keep my C# and VS development environment so I didn't want to tinker with any services. All I had to do was download the latest version of XAMPP and change the listening ports for 80 and 443. They were located in 2 files:
C:\xampp\apache\conf\httpd.conf
C:\xampp\apache\conf\extra\httpd-ssl.conf
Changing above from port 80 to 122 and 443 to 444 allowed me to have apache run and serve pages while keeping everything else the same for my ASP development. Hopefully this helps someone out there. In the end this is a very simple fix.
Direct your browser to:
http://localhost:122
I tried everything listed in the answers here but none of them worked.
Then all I did was to re-start XAMPP with administrator rights by:
It worked. It is that simple.
I uninstalled IIS services, stopped WWW services, changed ports back to 80, blocked all apache and mysql connections from windows 10 firewall, but yes it still works!
That was simple for me! try to run XAMPP Control Panel as administrator
The World Wide Web Publishing service was not the only one responsible in my case. I have IIS installed so I had to stop the whole http service.
This are the commands that I've executed in CMD(as administrator):
In you have installed
SQL Server
, Some of its services may block the port which XAMPP needs. I solved my problem by disablingSQL Server Reporting Services
and now Apache starts with no problem.Just open the
services.msc
, scroll down and findSQL Server Reporting Services
, right click on it and click the Stop.