Please note: I highly recommend you to install Apache, PHP & MySQL all-in-one by typing the following 2 commands in terminal:sudo apt-get install tasksel sudo tasksel install lamp-server
Awesome! Done… If you’d like to install PHPMyAdmin also type:sudo apt-get install phpmyadmin
However, you can also read the old article below, which involves downloading an old version of LAMPP thus probably, compromising security!
How to Install LAMPP/XAMPP for Linux (Deprecated!)
1. Download LAMPP
Download the latest version of LAMPP. Copy the downloaded file to your desired folder. Rename it to xampp.tar.gz (this is very important, unless you rename it appropriately the installer cannot run!)
2. Download Installer
Download the installer scripts from here. Unzip the zip file and copy two files ‘install.sh‘ and ‘python.txt‘ to same folder where the downloaded xampp file (xampp.tar.gz) exists.
You can also download the installer from here.
3. Run Installer
Double click and open install.sh, and run at terminal. Enter the directory path where you want to install xampp.
Note: You should have execution permission to this file “install.sh”
To run lampp, open a terminal and type
sudo <INSTALL-LOCATION>/lampp/lampp start
if you installed LAMPP at /opt directory, you should type:
sudo /opt/lampp/lampp start
To Stop Lampp, type:
sudo <INSTALL-LOCATION>/lampp/lampp stop
You also have a graphical Control Panel, which can be accessed from: Application menu under Internet – in my old versions of Ubuntu!
To Setup security issues, we recommend you to fix security holes:
sudo sudo <INSTALL-LOCATION>/lampp/lampp security
The installer has been made from the guidelines available Ubuntu forums.