How to solve “Error: Apache shutdown unexpectedly”?
XAMPP Log Error
16:50:25 [Apache] Status change detected: running 16:50:26 [Apache] Status change detected: stopped 16:50:26 [Apache] Error: Apache shutdown unexpectedly. 16:50:26 [Apache] This may be due to a blocked port, missing dependencies, 16:50:26 [Apache] improper privileges, a crash, or a shutdown by another method. 16:50:26 [Apache] Press the Logs button to view error logs and check 16:50:26 [Apache] the Windows Event Viewer for more clues 16:50:26 [Apache] If you need more help, copy and post this 16:50:26 [Apache] entire log window on the forums
how to solve above log ?
Make sure the location of the
XAMPP folder is outside the drive. Basically xampp only reads from your drive letter. for example:
- Try changing port.
in Control Panel change apache port
- Open folder
D:\xampp\apache\conf\extraand open all conf files one by one. (change
D:with your drive letter)
<VirtualHost _default_:443>and change it to
ServerName localhost:443. It’s possible that this hasn’t been set up yet and it reads
ServerName www.example.com:443. In any case, change it to
- Stop and Start apache
- Stop and start mysql