Download xampp from apachefriends.org
Go to your download directory.
Change the file’s rights so that it can be executed
chmod +x xampp-linux-[version of xampp].run
Start the installer
sudo ./xampp-linux-[version of xampp].run
To work on a project you have on disk, the best is to create a symbolic link in the httpdocs directory of xampp (it should be in /opt/lampp/htdocs).
cd /opt/lampp/htdocs sudo ln -s [path of the folder you want to work on] .
Open your favorite web browser and go to
http://localhost/[path of the folder you want to work on]
You should see your webpage.