Error: Apache shutdown unexpectedly xampp

16:50:25 [Apache] Status change detected: running
16:50:26 [Apache] Status change detected: stopped
16:50:26 [Apache] Error: Apache shutdown unexpectedly.
16:50:26 [Apache] This may be due to a blocked port, missing dependencies,
16:50:26 [Apache] improper privileges, a crash, or a shutdown by another method.
16:50:26 [Apache] Press the Logs button to view error logs and check
16:50:26 [Apache] the Windows Event Viewer for more clues
16:50:26 [Apache] If you need more help, copy and post this
16:50:26 [Apache] entire log window on the forums

How to resolve?

First check this StackOverflow question.

Make sure it is not Skype Issue. Make sure another application is not creating conflict with Apache on port 80. Make sure it is not a firewall issue. click “NetState” button on the right. Make sure port 80 is not used by any program. If that is all set the proceed below.

It is likely Virtual Host Issue

In the new version of xampp, if there is an error or misconfiguration in virtual host, Apache server will not start. Take default example of virtual host, for example.

<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/"
    ErrorLog "logs/"
    CustomLog "logs/" common

These errors can be of various form for example

  • Document root is incorrect path
  • Error log is incorrect path
  • Document root is not point to correct folder (/ at end of folder name)

To make sure it is not a vitual host issue, uncomment virtual host in xampp/apache/conf/http.config (line 501)

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

Hopefully this will resolve the problem. If either case, move to next step.

Fix Your Virtual Host Setting

As I pointed about any small misconfiguration in virtual host will cause apache not to start. So the best way to look at is to start apache from shell (command prompt).

In XAMPP Control Panel V3.2.1, click on “Shell” icon. This will take you to a screen like this

2015-02-28 22_00_26-Administrator_  XAMPP for Windows

Type “ap” then TAB 2 times


This will start Apache. The benefit of starting Apache from command prompt is, you will actually see errors in case it fails. It might throw some usefull error like line no 2 in Virtual host in correct path for example. Just fix that and restart and hopefully that will fix the problem.

This entry was posted in Uncategorized. Bookmark the permalink.

2 Responses to Error: Apache shutdown unexpectedly xampp

  1. Paweł says:

    In my case it was vhosts error or rader file missing.
    I run apache_start.bat from shell and it told me that can not access to dir: c:\xampp\wordpress\etc

    Of course that it could causes error. I set vhost before for WP Multiite but after some time I removed all directory 😀 lol

  2. oki says:


Leave a Reply to Paweł Cancel reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s