Resolve XAMPP, Apache – Error: Apache shutdown unexpectedly

If you are facing below error while starting Apache in XAMPP

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

 

I have find one of best solution on stack flow please follow below steps to resolve issue:

Step 1 – From XAMPP Control Panel, under Apache, click the Config button, and select the Apache (httpd.conf).

Inside the httpd.conf file, somehow I found line that says:

Listen 80

And change the 80 into any number / port you want. In my scenario I’m using port 8080.

Listen 8080

Still from the httpd.conf file, I found another line that says:

ServerName localhost:80

And change 80 to 8080.

ServerName localhost:8080

Step 2 – From XAMPP Control Panel, under Apache, click the Config button again, but this time select the Apache (httpd-ssl.conf). Inside the httpd-ssl.conf file, find line that says

Listen 443

And change the 443 into any number / port you want. I’ll using 4433 as the new port number.

Listen 4433

Still from the httpd-ssl.conf file, find another line that says

<VirtualHost _default_:443>

ServerName localhost:443

And change 443 to 4433.

<VirtualHost _default_:4433>

ServerName localhost:4433

Remember to save httpd.conf file and httpd-ssl.conf after you make some changes. Then restart the Apache service.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.