restart xampp linux

C++
sudo /opt/lampp/lampp stop
sudo /opt/lampp/lampp startsudo /opt/lampp/lampp start
Source

Also in C++: