apache server not starting in xampp mac code example Example: xampp apache not starting sudo /etc/init.d/apache2 stop sudo /opt/lampp/lampp start