Install XAMPP In Ubuntu – XAMPP For Linux Installation Guide

Last Updated On: September 17th, 2016

install xampp in Ubuntu

Whenever someone tries to modify something on a live website / server, it’s always something risky. Unless you’re an expert, you won’t be able to guarantee what would work and what won’t. Rather you’ll break the whole functionality of the site. However, if you don’t want to break your bank, it’s always safe to try things offline first. XAMPP for Linux is a viable solution for those web tinkerers. So, in this article, you’ll get to know how to install XAMPP in Ubuntu.

It’s definitely awesome when you get the ability to test things offline. The reason – you get the power to try almost anything you like. You get the freedom to try out experimental things that normally come with the tag “implement at your own risk“. In either case, if you aren’t a complete web expert, you should get to know what XAMPP is, what can be done using it, and how to install XAMPP in Ubuntu.

What is XAMPP?

XAMPP is a bundled software for integrating necessary web server solution packages offline. It’s an open source project. In other words, XAMPP can be described as an offline web server package.

XAMPP” seems to be a weird name. However, the name arrives by the combination of some technical terms.

X —->  Cross-Platform
A —->  Apache
M —>  MariaDB
P —-> PHP
P —-> Perl


As mentioned above, X – stands for -> cross-platform. So, you can be sure that XAMPP is available for Linux, Windows, and Mac OS X as well.

What can you do with XAMPP installed in Ubuntu?

We already know what it is, but what about its application? What are the things that you can do after you get to know the procedure to install XAMPP in Ubuntu? Scratching your head? Don’t worry, we’ll help you with that as we’ve compiled the following points that probably sums up everything you can achieve with XAMPP installed.

  • Set up WordPress Offline
  • Install Joomla Offline
  • Install Drupal Offline
  • Get to know about Cloud Tools offline
  • Try Application Security Tools offline
  • Experiment with the Binary Repository
  • Install phBB Offline
  • Practise Bug Tracking
  • Photo Sharing service creation demo
  • Master marketing automation offline
  • Integrate & Learn about e-Commerce, eLearning, and Social Networking
  • Learn to Manage a Forum
  • Set up a portal server
  • Try Collaboration tools and learn more about it

These are some of the most important things that you can do after you install XAMPP in Ubuntu. There are several others which you would get to know eventually as you use it and explore more about it.

Steps To Install XAMPP In Ubuntu

1. Download XAMPP Package for Ubuntu

Head over to XAMMP’s official download page to choose the one you want to install. You would observe the download section for Linux when you scroll down. Depending on your computer architecture (32-bit or 64-bit), download any one of them and install XAMP in Ubuntu. If you know the exact PHP version that you need, choose the appropriate one.

You May Also Like – Optimus Plugin For WordPress: Quick Review

2. After the download completes, navigate your way to the folder where the file resides using the following command.

Note: Type the commands by opening the Terminal (press ctrl + alt  + T). Here, our file exists on “Downloads” directory.

Here’s what you’ve to type:

cd Downloads

terminal commands - linux ubuntu 3. Convert the downloaded file to an executable form by typing the following command:

Additional note: Use the exact file name you have downloaded. The following example uses a 64-bit installation file with PHP 5.5.37

chmod +x

executable form linux

4. Now, run the installer as the root user using sudo command

sudo ./

running the xampp installer
The installer opens after entering the mentioned command

5. Now that you’ve opened the installer. All you have to do now is – follow the on-screen instructions to complete the setup. 

Final Setup Process To Install XAMPP in Ubuntu

We’ll guide you through the final setup procedure as well. Here’s what you need to do:

xampp setup

6. Click on “Next“.

7. Now, you’ll get to choose the components to install. Leave as it is. And, click “Next“.

xampp setup - components to install

8. You’ll observe the installation directory as opt/lampp. There’s nothing to be done here. Just don’t miss knowing the directory where it gets installed. Now, click “Next“.

xampp installation directory

9. Bitnami would be installed by default to enable access to some modules (as you can see in the image below) that you can utilize. Finally, click “Next” to start the installation.

bitnami installation

10. You will have to wait for a few minutes (3-5 mins) for the installation to complete. After the installation is done, click “Finish“.

installation of xampp

11. Now, you’ll be greeted with the XAMPP control center dialogue box.

xampp latest

12. Click on “Go To Application” to get started. Voila! It’s done!

So, finally, you have successfully installed XAMPP on Ubuntu. Encountered an error? Can’t start the Apache server? Let me know through the comments section below if you encounter any problems in setting up XAMPP successfully.

Also Read:

A freelance tech journo who started TechLegends. He has had bylines at a variety of publications that include Ubergizmo & Tech Cocktail. You will usually see cats dancing to the beautiful tunes sung by him. He is also keeping up with his B.Tech in Comp. Sc.