How To Install XAMPP on Ubuntu 20.04 LTS

Install XAMPP on Ubuntu 20.04

In this tutorial, we will show you how to install XAMPP on Ubuntu 20.04 LTS. For those of you who didn’t know, XAMPP is open-source software that provides users with an out-of-the-box server experience. It is a complex, yet very easy-to-use AMPP (Apache, MySQL, PHP, and Perl) distribution that’s compatible with the Linux, Microsoft Windows, and Mac OS X operating systems. The best tool for those who want to install a fully functional web development environment.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you through the step-by-step installation of XAMPP on Ubuntu 20.04 (Focal Fossa). You can follow the same instructions for Ubuntu 18.04, 16.04, and any other Debian-based distribution like Linux Mint.

Install XAMPP on Ubuntu 20.04 LTS Focal Fossa

Step 1. First, make sure that all your system packages are up-to-date by running the following apt commands in the terminal.

sudo apt update
sudo apt upgrade

Step 2. Installing XAMPP on Ubuntu 20.04.

Now we download XAMPP from the official website:

### For PHP 7.2 ###

### For PHP 7.3 ###

### For PHP 7.4 ###
### For PHP 8.3 ###

Once done, we change the permission of the installer. 755 means read and execute access for everyone and also write access for the owner of the file:

chmod 755
chmod +x

Finally, Run the installer:

sudo ./

The setup wizard will open, follow the installation instruction. Click next.

Install XAMPP on Ubuntu 20.04

Install XAMPP on Ubuntu 20.04

Install XAMPP on Ubuntu 20.04

Install XAMPP on Ubuntu 20.04

Install XAMPP on Ubuntu 20.04

Install XAMPP on Ubuntu 20.04

In the future, if you want to stop the service of this tool, simply use the following command:

sudo /opt/lampp/lampp stop

And if you want to start them again via command line:

sudo /opt/lampp/lampp start

Step 3. Accessing XAMPP on the Ubuntu system.

Once the setup is finished, XAMPP should be available for its usage on your Desktop or open your browser and follow this link: http://localhost/

Congratulations! You have successfully installed XAMPP. Thanks for using this tutorial for installing the XAMPP stack on Ubuntu 20.04 LTS Focal Fossa system. For additional help or useful information, we recommend you check the official XAMPP website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!