Various step to fix xampp windows updated 2022
programming
php
,
mysql
,
apache
,
xampp
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 ?
Folder Location
Make sure the location of the XAMPP
folder is outside the drive. Basically xampp only reads from your drive letter. for example:
D:\xampp
C:\xampp
Changing Port
- Try changing port.
in Control Panel change apache port
80
->8081
,443
->4433
- Open folder
D:\xampp\apache\conf\extra
and open all conf files one by one. (changeD:
with your drive letter)Find
<VirtualHost _default_:443>
and change it to<VirtualHost _default_:4443>
.Find
ServerName localhost:443
. It’s possible that this hasn’t been set up yet and it readsServerName www.example.com:443
. In any case, change it toServerName localhost:4443
.
Restart XAMPP
- Stop and Start apache
- Stop and start mysql