I installed XAMPP but I can not start apache, Error: Apache shutdown unexpectedly

11

I installed XAMPP on Windows and I am not able to start apache, the error I see is:

18:32:57  [Apache]  Error: Apache shutdown unexpectedly.
18:32:57  [Apache]  This may be due to a blocked port, missing dependencies, 
18:32:57  [Apache]  improper privileges, a crash, or a shutdown by another method.
18:32:57  [Apache]  Press the Logs button to view error logs and check
18:32:57  [Apache]  the Windows Event Viewer for more clues
18:32:57  [Apache]  If you need more help, copy and post this
18:32:57  [Apache]  entire log window on the forums
    
asked by anonymous 15.04.2014 / 23:43

6 answers

11

Response posted as comment:

If you are using the latest version of Skype:

  • Go to Tools > Options > Advanced > Connection .
  • Disable the Use port 80 and 443 for alternatives for incoming connections option.

  • LogoutandcloseSkype.
  • StartApacheagain.

* Reference

    
15.04.2014 / 23:56
4

The same thing happened to me, but as I'm without skype I had to look for another solution. For those who do not have skype and had the same problem , it follows the way I resolved mine:

1- Open the task manager (I'm using Windows 7)

2 - I searched for something related to this (mysqld.exe * 32)

3- Finished the mysqld.exe process * 32

4- I started Xampp and Apache returned to normal operation.

Source: link

    
06.12.2015 / 18:32
3

To know exactly what is listening on port 80 (or any other port) run cmd as administrator, and type: netstat -anb

In the example below, apache.exe is listening on port 80 on all machine IPs.

    C:\Windows\system32>netstat -anb

    Conexões ativas

      Proto  Endereço local         Endereço externo       Estado
      TCP    0.0.0.0:80             0.0.0.0:0              LISTENING
     [apache.exe]
...
    
29.07.2014 / 23:43
2

It is not always a door problem. In my case, it was another problem: root directory not found.

I discovered opening Xampp -> Shell (under the "Netstat" button) and ran the command apache_start.bat and then I got the message that it was not finding the root directory specified in httpd.conf.

I updated the path and started without any problems.

    
13.08.2018 / 13:59
0

In addition to Skype, as stated in the other answers, do the following:

From the start menu, type "resources" and click "Turn Windows features on or off". Wait a few minutes.

Whenthe"Windows Features" window opens, uncheck the "Internet Information Services" box. And press OK. The process may take a few minutes. Then restart your computer.

Anotherthingtodo, which was explained by @Marcielli Oliveira , is: once you install XAMPP, start apache and get it wrong, open the task manager and kill all the link and mysqld.exe * 32 processes. Once this is done, restart Apache.

    
06.12.2015 / 18:49
0

One of the causes of this error is the existence of another program / service that might be using port 80, such as Internet Information Service (IIS).

To make sure that port 80 is not being used by another program, open the command line (open as administrator in Windows 7) and run the command:

C:> netstat -a -b

If another program is using port 80, the name of the executable is listed.

    
09.09.2016 / 19:14