How to solve Error Apache shutdown unexpectedly

0 votes

I have just completing the reinstallation of the XAMPP, and when I try to start my Apache server in the XAMPP Control Panel, I now get the following errors:

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 could I solve this?

Feb 10, 2022 in Others by Soham
• 9,710 points
16,628 views

1 answer to this question.

0 votes

To answer your question, as this port is not used by Skype, rather by some other internal applications, I followed the below steps to resolve the issue:

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

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

Listen 80

Following which, I  changed 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

Change 80 to 8080.

ServerName localhost:8080

Step 2 - From the 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 use 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

Always never foresee, saving the httpd.conf and httpd-ssl.conf files after performing some changes. Then restart the Apache service.

answered Feb 10, 2022 by Rahul
• 9,680 points

Related Questions In Others

0 votes
0 answers

How to solve "Error: MySQL shutdown unexpectedly"?

When I start MySQL in XAMPP it ...READ MORE

May 5, 2022 in Others by Kichu
• 19,040 points
1,714 views
0 votes
1 answer

How to fix "Headers already sent" error in PHP

The functions that send and modify the ...READ MORE

answered Feb 17, 2022 in Others by Aditya
• 7,680 points
7,179 views
0 votes
1 answer

Error 1046 No database Selected, how to resolve?

I can help you with this doubt ...READ MORE

answered Feb 23, 2022 in Others by Aditya
• 7,680 points
1,643 views
0 votes
1 answer

How to get rid of a #value error in Excel?

Changing the format to "Number" doesn't actually ...READ MORE

answered Oct 3, 2022 in Others by narikkadan
• 63,600 points
787 views
0 votes
0 answers

How to open php files through localhost?

I am creating a student management program ...READ MORE

Jun 10, 2022 in PHP by narikkadan
• 63,600 points
1,229 views
0 votes
0 answers

MySQL error - #1932 - Table 'phpmyadmin.pma user config' doesn't exist in engine

I am working on creating a database ...READ MORE

Jun 23, 2022 in PHP by narikkadan
• 63,600 points
2,598 views
0 votes
0 answers

How can I access the XAMPP 7.0.9 Security page?

I have trouble getting to xampp 7.0.9's ...READ MORE

Aug 1, 2022 in PHP by Kithuzzz
• 38,000 points
418 views
0 votes
1 answer

Unable to start apache on mac os x 10.13

I had the exact same issue when ...READ MORE

answered Jun 7, 2018 in Other DevOps Questions by DareDev
• 6,890 points
1,007 views
0 votes
1 answer

How to open the Google Play Store directly from my Android application?

By using developer.andriod.com, one can solve this ...READ MORE

answered Feb 8, 2022 in Others by Rahul
• 9,680 points
858 views
0 votes
1 answer

How to download Xcode DMG or XIP file?

To answer your query, you will definitely ...READ MORE

answered Feb 10, 2022 in Others by Rahul
• 9,680 points
6,357 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP