Install xampp in ubuntu linux

In day to day life,you must come accross linux and some how you must finding difficulty while installing

software that you loved so much. Xampp is one of that software , that all most all OpenSource

developer wondering days and nights to work to their perfection.

Download xampp for linux from site

Keep the download file on desktop of ubuntu.

Incase the file in some other folder , then just right click on the downloaded

xampp file and click on move to -> Desktop.

Next thing is goto terminal and point to desktop using following command

cd Desktop

Then login as Root to get access to install xampp , for this use the following command

sudo -s

Then use the follwing command to copy all the files to ubuntu opt folder and install
tar xvfz xampp-linux-1.8.0.tar.gz -C /opt

In the above line ,while downloading the file from site
the download file wasn xampp-linux-1.8.0.tar.gz , In your case it may be different.

Then next thing is to give read/write permission to htdocs folder of lampp
use the following command.
sudo chmod 777 -R /opt/lampp/htdocs/

Now start the xampp service using following command

/opt/lampp/lampp start

To stop the service use the following command

/opt/lampp/lampp stop

Now goto browser and type the following


Now to create some folder and file in htdocs do the following

Go to ubuntu file system -> opt -> lampp -> htdocs , here you can

go with your project.

Keep coding.

Below image is the terminal window for starting Xampp Service like apache , mysql

Below image is Xampp for Linux welcome screen

Below image is the OPT folder of linux ,where we have installed out lampp (Xampp for linux)