How to solve "Error: Apache shutdown unexpectedly"

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys in this video I'm going to show you how you can solve this problem which says uh Apache is stopped unexpectedly or something on the lines uh that it says the port is used by some other service right so the solution for this is uh first of all if it's it complains about the port that the port is used by some other service generally it's also going to show you the service which is using the port a it shows this error which says a parch shut down unexpectedly this may be due to blocked Bo missing dependencies or other problems right so let's see how we can solve this problem so first of all we will just concentrate on this line which says it may be due to blocked Port so to know what port is using uh the port which is used by AP P server generally a PES server uses the port 80 on your operating system to run itself so to know that just click on this net stat uh button here and it's going to show which application is running on Port 0 so as I can see here Port 0 is occupied by python exe in my case so at this point I have two options either I need to close this py python app which I'm running or I can change the port on which I want to run Apache let's try them one by one so if I want to change the port I just need to click on config here and then click on Apache httpd.conf and once this file opens I can scroll down a little and I will see the port on which Apache runs right by default it's Port 80 so I can change this to Port 8 for example and then press contrl s to save this file and then minimize this and then try again right so I'm going to click on start and now you can see it starts successfully the status is green here but it's running on port 8080 if you want to run your app on Port 80 and don't want to run on any other Port then let's rward the changes once again so instead of uh port 8080 I will revert this to Port 80 and then stop my server again and then when I start it's going to complain again right so this time what I want want to do is I can either stop the service which is running on Port 0 so how to stop that uh uh application which is running on Port 80 you can click on net start once again and you can see here here the port and the P ID of that service so if you don't know how to uh stop the service which is using Port 80 what you can do is you can use this P ID to kill that service for that you just need to open the command prompt so you can just search for CMD here and then click on command prompt here and then just write task kill here and then forward SLP then space the P ID which you want to kill right so in our case we want to kill P ID number 2124 so I'm going to just write uh 2124 here and then space for slash F and then press enter and it says the process with P ID 2124 has been terminated once again when you go to net stat you can see this uh process is in blue that means it's being terminated you can close this and click on this once again and you will not find this uh application once again and Port 80 is free now and now you can see our Apache server is running on Port 0 right so this is how you can resolve this problem which says uh your Apache server is uh down unexpectedly right if all this doesn't work then there is one more solution and that is just stop everything so I'm going to stop all the services so just click on stop and stop all the modules here and once everything is stopped click on quit here which is going to quit Zam server and once Zam server is uh quitted you can also just click on this Arrow here and you will see the Zam server icon if zamp server icon is gone that means it's properly quitted if it doesn't quit you can right click on the Windows icon here so it's a right click and not the left click and then click on task manager and then just locate the zamp server if it's listed here and then click on end task which is going to end the task for zamp once that's done you need to reopen the zamp again so click on search and then search for zamp here and then you will see this zamp control panel option this time open zamp with administrative privileges so click on run as administrator and now this time once again you can click on this cross option if you see this cross option click on this service and click on yes here and once again click on this service click on Yes again wherever you uh see this cross click on yes for everything and then click on start button again and hopefully it's going to start working again okay so this is how also you can solve this problem so this is how you can uh solve this problem on your Zam server about this uh application crash and Port is preoccupied on your Windows operating system I hope you enjoyed this video and I will see you in the next video
Info
Channel: ProgrammingKnowledge
Views: 4,899
Rating: undefined out of 5
Keywords: How do I fix Apache not found in XAMPP?, How do I restart Apache in XAMPP?, How to remove error in XAMPP?, Why does XAMPP keep crashing?, How do I fix Apache shutdown unexpectedly?, How do I fix Apache not working?, How to find Apache error?, How to see Apache error?
Id: NT9caJJsl-0
Channel Id: undefined
Length: 6min 25sec (385 seconds)
Published: Sat Apr 20 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.