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 in Others by Soham
• 8,730 points
143 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 by Rahul
• 8,980 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 in Others by Kichu
• 15,810 points
38 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 in Others by Aditya
• 7,280 points
37 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 in Others by Aditya
• 7,280 points
25 views
0 votes
1 answer

How to check if array is multidimensional or not?

Since the 'second dimension' could be just ...READ MORE

answered Nov 5, 2018 in Others by DataKing99
• 8,240 points
3,861 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
306 views
0 votes
1 answer

Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved

Check the maven repository server is up. Check ...READ MORE

answered Jun 25, 2018 in Java by Sushmita
• 6,900 points
4,074 views
0 votes
1 answer

apache in amazon: httpd24 conflicts with httpd-2.2.31-1.8.amzn1.x86_64

I think you need to uninstall the ...READ MORE

answered Jun 26, 2018 in DevOps Tools by ajs3033
• 7,280 points
389 views
0 votes
1 answer

how do i make apache2 site point outside the folder in ubuntu?

in apche2 configuration file u have to ...READ MORE

answered Jul 6, 2018 in Other DevOps Questions by Kalgi
• 52,350 points
165 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 in Others by Rahul
• 8,980 points
9 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 in Others by Rahul
• 8,980 points
289 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP