how to repair xampp server for apache code example Example: xampp apache not starting sudo /etc/init.d/apache2 stop sudo /opt/lampp/lampp start