XAMPP : Couldn't start Apache (Windows 10)

2019-01-08 05:59发布

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.

标签: php apache xampp
20条回答
三岁会撩人
2楼-- · 2019-01-08 06:28

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

  1. Go to run/search in windows10
  2. Search for 'optionalfeatures'
  3. On that list untick the Internet Information Service(IIS)

then RESTART

查看更多
姐就是有狂的资本
3楼-- · 2019-01-08 06:29

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

Listen 122
ServerName localhost:122

C:\xampp\apache\conf\extra\httpd-ssl.conf

Listen 444

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

查看更多
戒情不戒烟
4楼-- · 2019-01-08 06:30

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:

Start menu - right click on XAMPP - select run as administartor

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!

查看更多
混吃等死
5楼-- · 2019-01-08 06:30

That was simple for me! try to run XAMPP Control Panel as administrator

查看更多
乱世女痞
6楼-- · 2019-01-08 06:31

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):

net stop W3SVC
net stop http
查看更多
干净又极端
7楼-- · 2019-01-08 06:32

In you have installed SQL Server, Some of its services may block the port which XAMPP needs. I solved my problem by disabling SQL Server Reporting Services and now Apache starts with no problem.

Just open the services.msc , scroll down and find SQL Server Reporting Services , right click on it and click the Stop.

查看更多
登录 后发表回答