How to fix Apache shutdown unexpectedly error in Xampp

                              Are you facing an error while trying to access Apache server in Xampp and not able to open any of your localhost projects. I will help you to fix this error in a very simple way.




Step - 1

click on config button corresponding to Apcahe start button, you will get different options select Apache(httpd.config). A text file will be opened.


Step - 2

After opening Apache(httpd.config) file scroll till you get #Listen 80


You have to change Listen 80 to any random number which should be greater than 1204.



Step - 3

Now, in the same file scroll till you get ServerName localhost:80. You should also change this number note the number should be same from the above. And save the file.


 

Step - 4

After that open Apache(httpd-ssl.conf) file, scroll down till you get Listen 443 and change it to any random number.



Now, scroll down to <VirtualHost_default_:443>. You should also change the number note the numbers should be same from before. And save the file. Now Apache server should start.




Step - 5

Open your browser and search for localhost:7864(this is the number which I have entered for Listen 80)

It should open your localhost dashboard.


Hope your issue is fixed now, Thank you viewing :)


Watch it on YouTube:



Comments