How to install xampp in ubuntu

Xampp is an application that helps to run local server in your computer.It is a tedious method to install Apache web server add MYSQL, php, perl and other application. There xampp has all the stuff in one package. Therefore xampp make it easy to install all these package from a single application. Xampp is available for all the format including windows , mac and solaris. In compare to windows and mac the installation of xampp is a bit complicated in linux. If you are searching for lampp. you are in right place because xampp is previously called lampp. To begin the installation download xampp from official website. or download via terminal


Also see 4 ways of using wget command in Linux 

After downloading place the file in desktop. Don’t extract the file. Put as you have downloaded it.

Step1: login into root directory

To install the xampp you have to log in into the root directory to log into root directory run the following command into terminal one by one

cd Desktop

(Make sure the initial letter of Desktop is capital)

sudo -s

Step2: Installing Xampp in Ubuntu

1. To install xampp in ubuntu run the following command in terminal which will extract the download file into /opt directory. Run the following Command in terminal

tar xvfz xampp-linux-1.7.3a.tar.gz -C /opt

(Note: This version will install xampp 1.7.3 version Place the xampp-linux-1.7.3a with the version if you want to install another version).

This process will install xampp. You will find xampp in /opt/lampp. Directory.

Step 3: Solve htdocs trouble

After install xampp when you try to paste anything to htdocs you will get permission denied error. Therefore to fix this you have to run the following code in terminal after running the code you can simply put files and folder into htdocs

sudo chmod 777 -R /opt/lampp/htdocs/

This changes the ownership of the htdocs folder to your user, the -R option makes the command recursive so all permissions of folders and files inside htdocs are changed aswell.

Step 4: How to operate xampp in ubuntu

In you can excess xampp with simple graphical interface but in linux you have to user terminal to start xamp. Here are the few guide for ubuntu user to operate xampp

To start Xampp

Run the following command in terminal to start lampp

/opt/lampp/lampp start

Stop the Xampp

/opt/lampp/lampp stop

You can see further documentation on xampp page if you need more guide to operate xampp on linux

Read more:

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s