// download the xampp from this link
https://www.apachefriends.org/download.html
// navigate to Download folder
cd ~/Download
// make the run file exec
chmod +x xampp-linux-(xampp version)-installer.run
// run the exec file with sudo
sudo ./xampp-linux-(xampp version)-installer.run