[Resolved] Error: Apache shutdown unexpectedly in XAMPP | Apache start error in XAMPP

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
resolving the error Apache shutdown unexpectedly in a normal scenario when we start the Apache service it starts with the default ports 80 and 443 but sometimes it may happen that these default ports are occupied by some other process due to this the Apache service fails to start and gives an error stating that Apache has shut down unexpectedly one way to resolve it is to check which process is using those ports we can find it by clicking on this netstat button it will display the port numbers corresponding process IDs and their process names search for those default port numbers and their corresponding process IDs make a note of them then open task manager click on details then find the process IDs that you have made note of click on it and then click end task this will kill the process and your ports will be free now you can try running the Apache server again and it should start but the problem here is if some important process is using the port then we cannot end that process else it may hinder some functionality so the alternate method is to change the default ports used by the Apache service to do so click this config button click on Apache httpd.cnf the httpd configuration file will open press Ctrl F to open the find tool type 80 and click find next line is commented so we don't need to change anything here then click find next again here we need to change the listen port number we will change it from 80 to something else which is not being used say we will change it to 8080. then we will click find next again here we will change this localhost port number from 80 to 8080. then we will click on find next again and we can see that there are no more port number 80 left now close this fine tool and save this file we have modified the port numbers at two places in this file now close this file click on the config button again but this time click on httpdssl.sonf the httpd SSL configuration file will open in this file we will find 443 click find next we will modify this listen port number from 443 to 4433 Now find again change this virtual host default port number to 4433 find next change this 443 to 4433 now there is nothing more to change please note that we can use any Newport number just that it should not be utilized by any other process else it will hinder functionality close this fine tool we have made changes to port numbers in three places in this file save the file and close it now try running the Apache service from xampp control panel this time it should start with newly assigned port numbers this is how we can resolve the Apache shutdown unexpectedly error if you like the information then please like And subscribe to my channel thank you for your time and patience have a nice day
Info
Channel: Tiny Tips
Views: 12,272
Rating: undefined out of 5
Keywords:
Id: jDaMFS18aEw
Channel Id: undefined
Length: 4min 5sec (245 seconds)
Published: Sun May 07 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.