xampp Error: Apache shutdown unexpectedly. code example
Example 1: xampp apache not starting
sudo /etc/init.d/apache2 stop
sudo /opt/lampp/lampp start
Example 2: mysql shutdown unexpectedly xampp
1. Exit Xampp and navigate to xampp/mysql/data directory
2. delete the ibdata1 file
3. restart the XAMPP server
or
1. Exit Xampp and navigate to xampp/mysql/data directory
2. delete the ibdata1, ib_logfile0,ib_logfile1,ib_logfile101 files
3. restart the XAMPP server
or
Try to check the error log at the installed location: /xampp/mysql/data/mysql_error.log