XAMPP: Failed to start Apache (Windows 10)

I use XAMPP and I can start Apache, but MySQL (PhpMyAdmin) starts!

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 searched for it, and by changing the Apache port in Config settings -> Service and port. I AM:

 Service name : Apache2.4 Main Port : 122 SSL port : 444 

I will also delete Skype (version of Windows 8/10 / Metro). Nothing works. In httpd.conf, I have:

 Listen 122 ServerName localhost:122 

I run it through apache_start.bat and get it;

 (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 LOGS files are not exsist! Skype is deleted.

If you need more information, please ask me.

+85
php apache xampp
Dec 06 '14 at 15:29
source share
23 answers

Update: May 15, 2018:

The latest Windows 10 (re-) update has activated the online publishing service (in German: WWW-Publishingdienst ). This may depend on the options that you select during the update setup, which you can do later.

Update: August 4, 2015:

If you performed a clean install of Windows 10, you may not have the Word Wide Web Publishing Service . In this case, a simple WAMP / XAMPP installation should work fine.

If this is not the case, try installing the redistributable Visual C ++, and then re- install WAMP / XAMPP.




I ran into a similar problem with WAMP. On Windows 10 TP , the Word Wide Web Publishing Service is installed p re-. This is related to IIS, and you can remove it if you do not need it.

This blocks port 80 causing Apache to behave strangely. You can do the following and try again.

  • Go to Start, enter services.msc
  • Scroll down in the Services window to find an online publishing service .
  • Right-click and select Stop .

This should make port 80 free, and restarting WAMP / XAMPP should start you up!

There are other ways to fix this. http://praveenpuglia.com/make-wamp-work-on-windows-10-technical-preview/

+218
Apr 13 '15 at 9:35
source share

The solution to this problem is very simple:

  • Open a command prompt with administrator privileges
    • Find "cmd", right-click on it and select "Administrator".
  • At the command prompt, type net stop W3SVC and Enter.

Now you can press WAMPP and restart all services. Open a browser and go to "localhost".

If you need to start W3SVC again,

  • Open a command prompt with administrator privileges
  • At the command prompt, type net start W3SVC and Enter.
+35
Jun 04 '15 at 18:39
source share

I found a way to solve this problem:

  • If you use Skype as well, uncheck the box to use ports 80 and 443 (Advanced → Settings → Advanced → Connections → Uncheck ports 80 and 443)
  • Restart Skype and XAMPP.

If this does not work,

  • Go to the beginning and enter "services.msc"
  • Find the World Wide Web Publishing Service
  • Right-click on this entry, select "Stop", then restart XAMPP.

If this doesn’t help and the World Wide Web Publishing Service is not available,

  • Go to the control panel, go to "Uninstall programs", then "Turn on / off Windows features"
  • Find "Internet Information Services"
  • Check the box and click OK.
  • Reboot, then repeat the second approach (services.msc)
+16
Aug 27 '15 at 18:38
source share

You can change the apache port:

  • Go to C: \ xampp \ apache \ conf \ httpd.
  • Find the combination Ctrl + F line #Listen 12.34.56.78:80 and change 80 to whatever you like, for example, 81
  • Same with Listen 80 change to 81
  • The same with the name ServerName localhost: 80 changes to 81.
  • Go to C: \ xampp \ apache \ conf \ extra \ httpd-vhosts and change the value 80 to 81

NameVirtualHost *: 80 here

VirtualHost *: 80 and here (two times)

  1. Restart apache

To enter your webpage type: http: // localhost: 81 / index.html

+11
Sep 01 '15 at 8:20
source share

1. Press Windows + R , enter regedit

2. Go to

 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP 

Change the Start value to 4, which means it is disabled.

3. Restart your computer

+5
Aug 30 '15 at 15:23
source share

I fixed this problem with mine as well, but I needed to change a couple of things. I require that I save the C # and VS development environment on my Win10 machine, so I did not want to bother with any services. All I had to do was download the latest version of XAMPP and change the listening ports to 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 run apache and serve the pages, while preserving everything else for my ASP development. Hope this helps someone out there. In the end, this is a very simple fix.

Point your browser to: http://localhost:122

+5
Oct 13 '16 at 17:14
source share

I tried all of the above in the answers here, but none of them worked.

Then all I did was restart XAMPP with administrator privileges:

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

It worked. It's simple.

I removed IIS services, stopped WWW services, changed ports to 80, blocked all apache and mysql connections from the Windows 10 firewall, but yes, it still works!

+4
Dec 6 '15 at 2:07
source share

There seem to be many answer options, it depends on your windows. Here is my experience when I have the same problem in the new version of Windows 10, and fix the problem in the next step:

  • Install Redistributable Visual C ++
  • Open XAMPP and select config in apache service
  • Change port 80 to 9000 or 81 or whatever in httpd.conf on line Listen 80
  • Change the port to httpd-ssl.conf and change Listen 443 to Listen 441
  • restart XAMPP and start the apache service and it works for me.

NOTE. I am using XAMPP version 5.6.15 and XAMPP Control Panel version 3.2.2.

+2
Feb 18 '16 at 8:59
source share

I have the same problem, but the solutions above make us change the port, and not get the exact solution. I searched for the simple HTTP and HTTPS protocol ports and found

If another application already uses the http or https ports on the local computer, this problem will occur, obviously, only because these ports are already in use and are in a busy state .

That is why it worked after changing the port number. But instead of changing the port on the XAMPP server, I used the following methods, and this works for me.

Here is the next step I received during this fix.

  1. The error I received in the XAMPP server application.

XAMPP Server Error

  1. In the upper corner there is a button called Netstat . This is very useful for finding running ports in the system.

Netstat button

  1. This is a Netstat application, where I found that the application is already running and is using a port number. 443. In my case, it was vmware-hostd.exe . You may have another application. Try to find port 80 (HTTP) or port 443 (HTTPS).

Netstat application opened

  1. I just opened the Windows task manager, selected this application vmware-hostd.exe and terminated the process by clicking the " End Process" button. I killed the process that used port 443. And this application was not needed at the moment.

Opened task manager and kill that application

  1. After destroying the application, Apache is currently available in the Windows Task Manager. Here is the proof.

Apache working




NOTE. If you find any application that uses http or https ports , it means that port 80 or port 443, and the application is not important or not vital, then just complete the process of this application. Otherwise, there is no need to follow these steps. Then you need to think about changing the port of the XAMMP application, as indicated in the answers above.

+2
Apr 29 '19 at 14:48
source share

so after starting the game all you have to do is change 2 lines in the httpd.conf file,

Listen to 80 changes in Listen 122 (or anything else you want)

and

Localhost ServerName: 80 to Localhost: 122 (or the port you changed above)

then everything should shoot straight: P

honestly, I think this is just an xampp application, not knowing what to do with windows 10 if you use the event list view in the xampp mine window.

5:56:38 AM [Apache] Fault detected!

5:56:38 AM [Apache] Port 80 uses "Unable to open process" with PID 4!

5:56:38 AM [Apache] Apache does NOT start without configured ports for free

5:56:38 AM [Apache] You need to remove / disable / reconfigure the lock application

5:56:38 AM [Apache] or reconfigure Apache and the control panel to listen on another port

5:56:38 AM [Apache] Trying to start an Apache application ...

and if you open net stat, it shows port 80 with PID 4, which is used by the system, but not sure, since I no longer have windows 7, but if it is not 7, then there is a problem.

Another reason I think the problem is that since the PID is 4 when searching in net stat, the system is the only thing with PID 4 and using it over port 80.

so sad that I don’t think that anything can be done until Apache Friends updates the software there or someone finds a job. Strike>

+1
Feb 28 '15 at 12:15
source share
  • Go to the Start menu, type Enable or Disable Windows Features
  • Uncheck Internet Information Services
  • Click OK
+1
Aug 08 '15 at 13:04 on
source share

In my case, it was a simple case of removing IIS, because Windows 10 comes with pre-installed IIS - it conflicts with XAMPP, because both of these servers try to use port 80. If you do not want to use IIS and continue to use XAMPP

  • Go to run / search in windows10
  • Search for additional options
  • Disable Internet Information Service (IIS) on this list.

then RESTART

+1
Mar 14 '16 at 9:54 on
source share

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 entire http service.

These are the commands that I executed in CMD (as an administrator):

 net stop W3SVC net stop http 
+1
Nov 24 '16 at 4:35
source share

In an installed SQL Server , some of its services may block the port that XAMPP needs. I solved my problem by disabling SQL Server Reporting Services , and now Apache starts without problems.

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

+1
Jul 09 '17 at 7:18
source share

Actually, IIS is installed by default (microsoft dotnet, etc.). go to the control panel enable or disable Windows features. In (IIS) Internet Information Services, clear the (WWWS) check box for World Wide Web Services. and click OK. this may be a permanent solution. :)

0
Sep 20 '15 at 0:34
source share

These tips were great. I had the same problem, but my solution was different, because I was so stupid that I renamed the directory in which XAMPP was located, and I installed many other programs that I could not rename.

In my case, there was the source directory C: \ Programs \ Xampp and renamed it to C: \ PROGRAMS_ \ Xampp , and that was an error.

The solution was to find all the links to C: \ Programs and rename them C: \ PROGRAMS _ in the Xampp directory, because for some reason during the installation it records the absolute paths is not real. Of course, there are some reviews in the registry.

Hope this helps someone.

0
Nov 11 '15 at 18:18
source share

it's just a matter of creating port 80 for your Apache service. The way I solved the problem is

  • In windows 10, right-click the start button and select run
  • Enter services.msc and click OK
  • Find and right-click World wide web publishing service
  • Select properties
  • Change startup type to Automatic (Delayed Start)
  • Reboot the computer.

There you have it, everything goes back to normal

0
Mar 13 '16 at 15:51
source share

It was just for me! try running the XAMPP control panel as administrator

0
Jun 14 '16 at 8:56
source share

I have tried all of the above solutions. But that in no way worked.

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

Now I can start the server on any port (including 80).

0
Aug 09 '16 at 4:28
source share

I found that running apache_start gave me the exact error and what line it was on. My mistake was that I left a space between loccalhost: and the port

0
Aug 11 '16 at 19:42 on
source share

Steps: Open the XAMMP control panel, open Apache Config, then select the Apache configuration file - xammp- Search for port 443, and then change it to another port, say 4433.

Then reboot.

0
Sep 21 '18 at 12:36
source share

Check if PHP is installed correctly, check which php.ini you use in apache conf, and use it to run php.exe ...

0
Jun 21 '19 at 9:42
source share

Update: 07/25/2019: You just upgraded your Windows to version 1903 (OS build: 18362.239) OR have you changed user passwords?

I did this, and despite resolving all the port conflicts, I continued to receive the messages described by the OP at the very beginning of this post.

I finally cured it by upgrading XAMPP to 7.3.7. (Forced reinstallation, it is also possible to upgrade simultaneously!)

But the problem resumed when I again went to change the password of the "root" user.

Console error messages masked the fact that the mysql.user table was corrupted.

Check mysql_error.log . If you see a fatal error: cannot open and lock privilege tables: the index for the 'user' table is corrupted; try repairing it and then look at this one .

0
Jul 25 '19 at 1:25
source share



All Articles