Posted in: Technical, Website, Wordpress

How to fix error apache shutdown unexpectedly

Hi Guys!

Today we are discussing here, how we can fix error apache shutdown unexpectedly in xampp server.

As you all know Xampp server is a free and open-source web server developed by Apache Friends. Most of the people use xampp server to run their applications of PHP, WordPress, Perl, etc.  But sometimes when we start Apache in their xampp server, we get an error  Apache Shutdown unexpectedly.  if you want to know, how you can install xampp server in your local computer. you can follow the link How to install xampp server in windows 10

Today we will discuss here, What’s the reason of this error? and How we can fix it in xampp server?.

  1. What’s the reason of this error? Actually our localhost server used a default port, port 80. Most of applications also use this port number on the computer. When you install xampp server in your local computer and click on the start button to run apache, then apache is also searched for port 80. If there is any application on your computer, which is used port 80 already then you will get this error Apache Shutdown unexpectedly. 

So, when we get this error then we will give a separate port number to run their apache server.

Some other useful links.

2.  How we can fix it in xampp server? To fix this error in xampp server, we will give a separate port number to run their apache server. we will do changes in two files (i) httpd.conf and (ii) httpd-ssl.conf of Apache.

Follow the following steps to fix the error apache shutdown unexpectedly in xampp server.

  1. Open your xampp control panel and click on Config. button against the Apache and choose the first option httpd.conf

apache shutdown unexpectedly

2. Open the first file httpd.conf  and find 80.

apache shutdown unexpectedly

3. Change Listen 80 to Listen 8080.

apache shutdown unexpectedly

4. Now Find text “servername”.

apache shutdown unexpectedly

5. Now change ServerName localhost:80 to 8080

apache shutdown unexpectedly

6. Now save the file httpd.conf

apache shutdown unexpectedly

7. Now we will do changes in our second file of apache httpd-ssl.conf. Just click on it.

38

8. Now find 443 in httpd-ssl.conf  file.

39

9. Now change Listen 443 to Listen 4433.

40

10. Now click on the next button.

41

11. Change <VirtualHost _default_:443> to <VirtualHost _default_:4433>

42

12. Now save the httpd-ssl.conf  file.

43

13. After completing these changes, just click on the start button against Apache.

apache shutdown unexpectedly

14. Click on the Allow Access button. Now Your Apache will work successfully.

apache shutdown unexpectedly

 


how to fix apache shutdown unexpectedly in xampp
Spread the Topic
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Comments (2) on "How to fix error apache shutdown unexpectedly"

Leave a Reply

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