Bug 8099 - How to solve Error Apache shutdown unexpectedly
Summary: How to solve Error Apache shutdown unexpectedly
Status: RESOLVED INVALID
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Learner (show other bugs)
Version: unspecified
Hardware: All Windows 10
: P2 normal
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-04 10:12 UTC by Soumya
Modified: 2023-01-04 11:21 UTC (History)
1 user (show)



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Soumya 2023-01-04 10:12:59 UTC
How to Solve Below issue
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


Solution
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.

Let me know your thoughts in comments.
You can be a part of amazing journey of knowledge with https://www.edureka.co/reactjs-redux-certification-training & https://www.edureka.co/community
Comment 1 Giovanni Bechis 2023-01-04 11:21:31 UTC
Apache httpd is a different project, you should ask this question on httpd-users (https://httpd.apache.org/lists.html#http-users)