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> ServerAdmin firstname.lastname@example.org DocumentRoot "C:/xampp/htdocs/dummy-host2.example.com" ServerName dummy-host2.example.com ErrorLog "logs/dummy-host2.example.com-error.log" CustomLog "logs/dummy-host2.example.com-access.log" common </VirtualHost>
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
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.