Following was the error appearing in my XAMPP:
Error: Apache shutdown unexpectedly.8:33:18 PM [Apache] This may be due to a blocked port, missing dependencies,8:33:18 PM [Apache] improper privileges, a crash, or a shutdown by another method.8:33:18 PM [Apache] Press the Logs button to view error logs and check8:33:18 PM [Apache] the Windows Event Viewer for more clues8:33:18 PM [Apache] If you need more help, copy and post this8:33:18 PM [Apache] entire log window on the forums
So I was looking for the solution all over the place and finally i figured it out.
- Figure out what applications are using port 80 and if there are not crucial applications that are using port 80 then you can free the port for XAMPP to use it.
- First open cmd as Administrator -- do this by typing cmd in search bar and right click cmd.exe and run as Administrator.
- Enter netstat -aon | findstr :80 to find all the necessary applications that are using port 80.