install Xampp in ubuntu

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


wget http://www.apachefriends.org/download.php?xampp-linux-1.7.3a.tar.gz

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

xampp ubuntu
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
1. To start Xampp
Run the following command in terminal to start lampp


/opt/lampp/lampp start


xampp-ubuntu-start
2. 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

3 comments:

Anoushka Sakthi said...

PHP – Hypertext preprocessor is a general purpose scripting language specially designed for the web development that is easily embedded into HTML language. Some of the excellent features in PHP include capability to create dynamic page content, send and receive cookies, encrypt data.
Regards:
PHP Training Chennai
PHP Training Institute in Chennai

Mirnalini Sathya said...

Excellent blog!! Such an interesting content to read, your idea made to take Web Designing Certifications. Keep updating more ideas. Thank you.
Regards:
website design in chennai
web design training course

Unknown said...

It's to a great degree valuable information for learning web arranging. Thankful to you for giving the steady information. This blog is particularly useful for novices.
Web Designing Course in Chennai | Web designing training in Chennai | Web Development courses in Chennai | Web development training in Chennai