Goto https://www.apachefriends.org/download.html
Download your desired version of linux xampp-linux-x64-x.x.x-x-installer.run
Once download is complete open terminal and navigate to your download location
Now Make the installer executable by running this command chmod +x xampp-linux-x64-x.x.x-x-installer.run
Enter the installation command sudo ./xampp-linux-x64-7.4.30-1-installer.run
A GUI will pop up. Follow the instruction accordingly to install properly.
How to open XAMPP on your linux machine ?
After complete installation you won't find any shortcut to open XAMPP. Don't worry. Follow this steps to run XAMPP.
Open terminal and type
cd /opt/lampp
sudo ./manager-linux-x64.run
You'll see a pop up of XAMPP Window after that
Goto Manage Servers
tab and start server according to your need