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

It looks like there are many options answer it is depend on your windows. Here is my experience when having the same problem in windows 10 fresh install and fix the issue with the following step :

  1. Install Visual C++ Redistributable
  2. Open XAMPP and select config in apache service
  3. Change the port 80 to 9000 or 81 or whatever you want in httpd.conf on the line Listen 80
  4. Change the port on httpd-ssl.conf and change Listen 443 to Listen 441
  5. restart XAMPP and start apache service, and it work for me.

NOTE : I'm using XAMPP Version 5.6.15 and XAMPP Control Panel version 3.2.2

查看更多
一纸荒年 Trace。
3楼-- · 2019-01-08 06:13

I found a way to solve this problem:

  1. If you are using Skype as well, uncheck the field stating to use ports 80 and 443 (Extra -> Settings -> Advanced -> Connections -> Uncheck Port 80 and 443)
  2. Restart Skype and XAMPP.

If this does not work,

  1. Go to Start and type "services.msc"
  2. Locate "World Wide Web Publishing Service"
  3. Right-click on that entry, select "Stop", then restart XAMPP.

If that did not work and "World Wide Web Publishing Service" was not available,

  1. Go to the Control Panel, navigate to "Uninstall Programs", then "Turn on/off Windows features"
  2. Locate "Internet Information Services"
  3. Click the checkbox and hit "OK".
  4. Restart, then repeat the second approach (services.msc)
查看更多
一夜七次
4楼-- · 2019-01-08 06:15

I have tried all the above solutions. But it was not working in any way.

Finally I just uninstalled the XAMPP and installed it again. Then it worked for me.

Now I can able to run the server on any port (including 80).

查看更多
等我变得足够好
5楼-- · 2019-01-08 06:15

Steps: Open the XAMMP Control Panel, Open Apache Config, then select the Apache - xammp- config file Search for Port 443, and then change it to some other port lets say 4433

Then restart.

查看更多
爷、活的狠高调
6楼-- · 2019-01-08 06:16

These advices were great. I had the same problem, but my solution was different, because I was so stupid, that I have renamed directory where XAMPP was located and sice I had installed a lot of another programs I couldn't rename it back.

In my case there was original directory C:\Programs\Xampp and renamed it to C:\PROGRAMS_\Xampp and that was the mistake.

Solution was to find all references on C:\Programs and rename them C:\PROGRAMS_ in Xampp directory, because for some reason during the installation it writes absolute paths not realive. Of course there are some refences in registry too.

Hope that will help someone.

查看更多
做自己的国王
7楼-- · 2019-01-08 06:16

it's simply a matter of making port 80 available for your Apache service The way i solved the problem is

  1. On windows 10 right click the start button and select run
  2. Type services.msc and click OK
  3. Find and right Click World wide web publishing service
  4. Select properties
  5. Change the startup type value to Automatic (Delayed Start)
  6. Restart your computer.

There you have it, All is back to normal

查看更多
登录 后发表回答