How To Install XAMPP In Ubuntu In A Few Easy Steps


XAMPP stands for Cross platform (X), Apache (A) Server, MariaDB (M), PHP (P), and Perl (P). Created by Apache Friends, it basically acts as a local host or server.

This article will show you how to install XAMPP Web Server on Ubuntu with a few simple steps. To download, install, and configure XAMPP on your system, follow these steps:

Step 1: Download The Installation Package

The first step is to download the XAMPP package for Linux from theĀ Apache Friends official website.

Download the XAMPP package and save it to your system.

Step 2: Make The Installation Package Executable

Then install the package from the Ubuntu command line The Terminal. Open the command line terminal and navigate to the /root/Downloads/ directory.

Navigate to the download folder using the following command:

cd /root/Downloads/

give executable permissions to XAMPP package file which we downloaded in first step as shown below:

chmod 755 [Package Name]
chmod 755

Step 3: Launch The Setup

As super root user, run the following command to start the graphical setup wizard:

sudo ./[package name]
sudo ./

This will start the setup wizard and guide you through the rest of the installation process. Finally, you need to complete the installation process.

Step 4: Launch XAMPP Through The Terminal

Once installed, you need to launch the XAMPP application by typing the following command from your terminal:

sudo /opt/lampp/lampp start

If you can't find any errors or commands related to netstat, make sure you need to install the nettools package by typing:

sudo apt-get install net-tools

To manage the database, you can go to http://localhost/phpmyadmin

Step 5: Uninstall The XAMPP

If you want to uninstall the XAMPP package, Open your Ubuntu Terminal and navigate to the directory where XAMPP is installed, the command is:

./cd /opt/lampp

The next step is to run the uninstaller located in the Lampp folder using the following command:

sudo ./uninstall

Now, XAMPP and all its modules are uninstalled from your system. You can also delete the downloaded install package if you want.