XAMPP is a LAMPP (Linux, Apache, MySQL, PHP and Perl) web server package available for Linux, Macintosh and Windows, produced and maintained by a group called Apache Friends. XAMPP does not appear in the normal Ubuntu repositories, and it must be downloaded from the XAMPP home page at http://www.apachefriends.org/en/xampp.html. The Linux version is a hefty 55Mb, but installation is just a matter of unpacking it to the /opt/lampp directory with the following command, issued in whatever directory you downloaded the file to:
sudo tar xvfz xampp-linux-1.7.tar.gz -C /opt
To activate XAMPP issue the terminal command:
sudo /opt/lampp/lampp start
To check that XAMPP is running, open a web browser and enter the URL: http://localhost. You should see the XAMPP Start page. The web directory referred to by that address will be on your file system as /opt/lampp/htdocs. The default home page -- index.html -- installed in this directory redirects the user to a language selection page and then to the XAMPP start page. Create a new index.html in this directory, and this file will become your home page.
To stop XAMPP issue the same command, substituting 'stop' for 'start':
sudo /opt/lampp/lampp stop
The default XAMPP start page 