How to Install and Uninstall XAMPP in Ubuntu

XAMPP is an open-source web server package. Apache friends are its developer. In this article, I will explain how you can install or uninstall XAMPP in Ubuntu. XAMPP is easy to install in windows and XOS. However, it is a different story when it comes to Ubuntu. You will need to put some extra commands to do it. So let us get started.

How to Install and Uninstall XAMPP in Ubuntu

As we all know, Ubuntu is a Linux distribution. It is hard to install the software in Linux as compared to windows or XOS. Installing XAMPP is a bit tricky but not that hard. You will need to through extra commands at the terminal. Simply follow this tutorial and you will be good to go.

You might also like: How To Edit PDF In Word – Step by Step Guide

Install XAMPP in Ubuntu

STEP 1: Install Net tools

The net tool is important if you want to use XAMPP. Install it first so you won’t face any problem after installing XAMPP.

  • First, open the terminal.
  • Now put this command in the terminal with administrative access.

 sudo apt install net-tools

After this, it is finally time to move on to the main course.

STEP 2: Download the XAMPP package for Ubuntu

Apache friend’s official website provides the XAMPP installation package. Here is the link to the website. Go to their official website and download it.

Download XAMPP

STEP 3: Finding the downloaded file location and making it executable

Now you need to find the path to the downloaded installation package. It can be different for everyone. Because we like to have it our way. However, its default in my case. Now its time to make installation package executable. It is a .run package. Java package program is stored in the file. It needs to be executed to install a program. That’s why need to make this package executable.

  • Open the terminal and move the central directory to the folder where the file is located.

cd file path

  • In my case its download folder so:

cd /home/Bhanu/Downloads

“Bhanu” is username here.

  • Now put this command in terminal to make installation package executable.

chmod 755 package name

  • Put the name of the installation package in the “package name”.

All done! You can now execute the installation package.

STEP 4: Install XAMPP through Step Wizard in Ubuntu

You are all set to work through step wizard. Complete the step wizard by following on-screen instructions.  It all easy from here on out.

  • Now use this command to open the setup wizard

sudo ./package name

  • A XAMPP set up wizard will now open.
  • Click next and the component selection window will open.
  • Here, click next to continue.
  • In the next window, you will see the installation directory. Keep it in mind and click next.
  • In the next window, it will ask you to install additional apps like word press.
  • Here uncheck the box “Learn more about Bitnami for XAMPP”. Now, these won’t install.
  • After clicking next, you will see “ready to install window”. So click next to continue.
  • Now the installation will begin. It will take some time so sit back and relax.
  • Click Finish to complete the installation.
  • Here you can check the box “Launch XAMPP” to launch it immediately.
  • You can also launch it via terminal with this command.

sudo /opt/lampp/lampp start

You can also verify the installation. Open the browser and write http://localhost. A XAMPP webpage will open. It confirms the installation of XAMPP in Ubuntu.

Uninstall XAMPP from Ubuntu

It is easy to uninstall. Put these commands in the terminal, and you are good to go.

  • Now open the terminal and set the central directory to the installation directory.

cd /opt/lamp

  • Now put this command to uninstall.

sudo ./uninstall

  • A window will now open. It will ask you to uninstall XAMPP with all its components.
  • Click yes to continue.
  • The uninstallation process will now begin. It will take some time.
  • After this, a message will appear saying “uninstallation complete”. Here click OK.

It is now uninstalled successfully.

Wrapping Up!

XAMPP is a great utility to create a local server. You can test your website local of website and many more. Overall, it is a great utility. Install and uninstall the process of XAMPP is a bit tricky in Ubuntu. It is easier in windows or mac but Ubuntu gives you more freedom. However, you can use this tutorial if you are stuck.