1.Download the Xampp Server.
2.For installing xampp in linux.
3.Open the Terminal by clicking on ‘Applications->Accessories->Terminal’
4.Type sudo tar -xvzf xampp1.7.2.tar.gz(Source file is located exactly) -C /opt and then press ‘enter’.
5.It will extract the file and then you have to start the xampp server by typing sudo /opt/lampp/lampp start and then press ‘enter’.It will start the Server.
6.Then give the permission for the ‘htdocs’ folder by typing sudo chmod -R 777 /opt/lampp/htdocs to gain access.
7.Thats it. Xampp is installed and running.
8.You can Check it by typing http://localhost on your browser.