How to Install XAMPP in Ubuntu for Localhost Server

4 Steps to Install XAMPP in Ubuntu. [Tested on Ubuntu 14.04 LTS]
- Download xampp-linux-x64-7.3.6-2-installer.run software in your Download Directory from ApacheFriends.
- Open Terminal CTRL + ALT +T . And type
cd Downloads
. - Next run
chmod 755 xampp-linux-x64-7.3.6-2-installer.run
from your terminal. - Install XAMPP:Run the following command and follow the window.
sudo ./xampp-linux-x64-7.3.6-2-installer.run
xampp-linux-x64-7.3.6-2-installer.run
with the similar name of downloaded xampp package.How to Start and Stop XAMPP in Ubuntu/Linux through Terminal
1. To Start XAMPP -sudo /opt/lampp/xampp start
2. To Stop XAMPP -
sudo /opt/lampp/xampp stop
How to Fix XAMPP permission denied /opt/lampp/htdocs Directory in Ubuntu
To fix this (Granting Permission) just run the following command through your Terminal.sudo chmod -R 777 /opt/lampp/htdocs