restart the xampp server code example Example: restart xampp linux sudo /opt/lampp/lampp stop sudo /opt/lampp/lampp start