Making Linux Simple!
Install XAMPP-Linux Apache MySQL and PhP {LAMP} on Ubuntu: How-to
A web server is very important component if you are on Linux an importantly if you are web developer. You can install Apache, MySQL and PhP as separate component on Linux and then configure them. However, if you are just getting started and wished there was an all-in-one package to install LAMP (Linux Apache MySQL and PhP) on your Ubuntu machine and that you could avoid all the hassles of configuring each package separately, then you are reading the right post. XAMPP for Linux avoids all the issues of installing separate components of LAMP and makes it easy for you to get started with your web development on Linux.
XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use – just download, extract and start.
Let’s see how to install XAMPP.
Installing XAMPP
1. Download the latest version of XAMPP for Linux from here.
2. Bring up your run prompt by hitting ALT+F2 and type “gnome-terminal” (without quotes) to bring up terminal window.

3. Type the following to begin the installation:
cd Desktop
sudo tar xvfz xampp-linux-1.7.1.tar.gz -C /opt

This means we are installing XAMPP in /opt directory. If everything goes right you’ll have XAMPP installed.
Starting XAMPP
In order to start XAMPP, type the following in your terminal window
sudo /opt/lampp/lampp start

Test XAMPP Installation
You can test your XAMPP installation by opening firefox and typing localhost in the address bar.
You’ll see the following screen

Select your desired language and you are good to go.

Enjoy the journey of developing great web application with a great LAMP package on your Ubuntu!

Related posts:
| Print article | This entry was posted by Vivek on July 5, 2009 at 11:47 am, and is filed under Featured, How-to, Linux, Ubuntu. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
Comments are closed.



















about 1 year ago
Hi! I am new to Ubuntu Linux and I’ve been trying to install Xampp without any success. I’m glad I came across your site and it sure helped! Thanks a lot!
about 1 year ago
@Paula. I am glad it helped! It’d be great if you’d drop in comments any post you’d like to request and see on LinuxHub and I’d be happy to do if I can
about 11 months ago
Could you please tell me where to store the file after the download. And tell me which in the code is the file name. Cause some people tend to change the name of the files that they download. Sorry for being such a danda head. and thank you for your help.
about 11 months ago
Thanks for the instructions. Made installation easy to understand.
about 9 months ago
Thanks for the instruction. I couldn’t install it and I thought it was because of the virtualbox, but with your guidence it was possible
Thanks a lot.
about 8 months ago
I have a small problem. I have already MySQL running on my ubuntu. Now when I installed XAMPP it says “Another MySQL daemon is already running”.
how does it affect this installation ?
about 7 months ago
i am new to linux please any one help me. like windows where is the
xampp control panel
about 5 months ago
i really have a big issue, when i am going to start xampp i got this
XAMPP: Couldn't start MySql! all the other services started normally,
and when i go to localhost i rederects to http://localhost/xampp/splash.php in order to choose language, and when i press for example english or anything else it justs refresh me the page….and nothing happens
Please i need your answer