How to Install XAMPP on Debian 10

Install XAMPP on Debian 10

Apache Friends has developed XAMPP which stands for Cross-Platform, Apache, MySQL, PHP, and Perl. By using this software you can test your web applications on your local system.  Mostly XAMPP used on Windows machines but some packages are also available for Debian Linux. In this tutorial, you are going to learn how to install XAMPP on Debian 10.


Before you start to install XAMPP on Debian. You must have the non-root user account on your server/desktop with sudo privileges.

Install the net-tools required by XAMPP running following command.

sudo apt install net-tools

Install XAMPP

First, you should visit the XAMPP download page and download the XAMPP script. At the time writing this tutorial the latest XAMPP version is 7.3.0. You can visit their download page if the new version is available.
To download XAMPP run following command in the terminal using wget command:

sudo wget

Now make the downloaded file executable by setting permissions to file:

sudo chmod +x

After setting up the permission run the file using the following command:

sudo ./

You will get the following screen then click on next.

Welcome To XAMPP setup Wizard
Welcome To XAMPP setup Wizard

Now it will ask you to select components to install, it is recommended to leave it as default and click on Next.

Select the components
Select the components

In this step, you will be informed of the location where the XAMPP setup is going to be installed. Click on Next

Informing XAMPP installtion location
Informing XAMPP installation location

Now it will ask you to install sponsored applications such as Drupal, Joomla, and WordPress. You can uncheck the checkbox if you don’t want these applications should be installed. Then click on the Nextbutton.

Sponsored Applications
Sponsored Applications

Now you should click on Next button.

Ready to install XAMPP
Ready to install XAMPP

Here the installation process is started.

Installation Process
Installation Process

After completing the installation click on Finish to complete the setup.

Finish Setup
Finish Setup

Start and Verify XAMPP installation

Stating XAMPP in Debian is very much easy. To start the XAMPP form terminal on Debian run following command.

$ sudo /opt/lampp/lampp start

Now visit http://localhost/ to see the XAMPP output screen.

To visit PHPMyAdmin visit following link http://localhost/phpmyadmin/

Login to PHPMyAdmin
Login to PHPMyAdmin


Uninstall XAMPP

To uninstall XAMPP first navigate to /opt/lampp directory.

cd /opt/lampp

Now start uninstallation process running following command:


Now you will be prompted to confirm uninstalling XAMPP. Click on Yes to uninstall XAMPP.

After completing the Uninstallation process run following command to remove /opt/lampp directory.

sudo rm -r /opt/lampp


You have successfully learned how to install XAMPP on Debian 10. If you have any queries regarding this then please don’t forget to comment below.