How to Install XAMPP on Ubuntu 22.04 using Terminal


To install xampp, it needs to be downloaded from the official website, and type xampp installer command “sudo chmod +x xampp-linux-*-installer” on terminal, After running the installer script, the setup installer wizard will start, with the help of which it will be installed in your ubuntu system.


Through this tutorial, we will show you how to install and use xampp on linux ubuntu 22.04 system using terminal or command line.

How to Install XAMPP in Ubuntu 22.04 Terminal

Here are steps to install, start, and use xampp on Linux ubuntu 20.0 | 22.04 using command line:

Open your terminal window or command line and begin the installation process.

Step 1 – Update System Packages

You need to update the packages of the Ubuntu system, for this you can use:


sudo apt update
sudo apt upgrade -y

Step 2 – Download XAMPP for Ubuntu Linux

Here are some commands according to php version for downloading the complete xampp with specific php version. Whatever version of Php you have installed. According to it, you can use it by selecting the recording command of your requirement from the command given below:

For PHP 8.1



To PHP 8.0:


To PHP 7.4:



For PHP 7.3:


For PHP 7.2:



Step 3 – Command to Install XAMPP in Ubuntu 20.0 | 22.04

By typing the xampp installer script on the command line or terminal, which starts the xampp installation wizard to install xampp on your ubuntu 22.04 or 20.04, you can do it with this:

chmod a+x xampp-linux-*

After you run the installer script, you will need to select the php version for xampp that you want to use with xampp, for this you can use this command:


### PHP 8.1 example ###
sudo ./

### PHP 7.4 example ###
sudo ./

Now xampp setup the installer wizard are start to installing xampp into your system:

1. XAMPP Setup Wizard

Now the xampp installation wizard has started, click on the Next button and proceed with the installation process:

2. Select Components for setup

Next, you will need to check the components you want to install and uncheck or skip as this is the one you do not want to install. You can see that there are some options that are light brown. These are the options that are required to run the software and will be installed automatically. Now click on the next button to continue.

3. Select Installation Folder Of Xampp

Now you have to select the folder where you want to install XAMPP. You can choose the default location or any location of your choice and select the ‘Next’ button to proceed.

4. Bitnami for XAMPP

Now you will see a window showing information about Bitnami. Just click on the ‘Next’ button to proceed:

5. Ready to Install

Now a prompt wizard will be visible on your system, it will have a message like this Setup is now ready to start installing XAMPP on your computer, To proceed you just have to hit the ‘Next’ button.

6. Welcome XAMPP Wizard


Now just be patient and wait for the installation to complete.

7. Installation Finished

Now the installation is complete with the help of the installer wizard, and the Finish button will be visible on the prompt, click Finish and XAMPP will be ready to start:

Step 4 – Use Xampp on Ubuntu

Now, you can use apache, phpmyadmin, localhost, etc of xampp:


To access phpMyAdmin page use:


Watch the video guide on how to install XAMPP on Ubuntu 22.04:


Through this tutorial, we have learned how to install and use xampp on Linux ubuntu 22.04 system using a terminal or command line.

Recommended Linux Ubuntu Tutorials


Jaspreet Singh Ghuman

Jaspreet Singh Ghuman

Passionate Professional Blogger, Freelancer, WordPress Enthusiast, Digital Marketer, Web Developer, Server Operator, Networking Expert. Empowering online presence with diverse skills.

jassweb logo

Jassweb always keeps its services up-to-date with the latest trends in the market, providing its customers all over the world with high-end and easily extensible internet, intranet, and extranet products.


Jassweb, Rai Chak, Punjab, India. 143518
Item added to cart.
0 items - 0.00