XAMPP is an abbreviation for cross-platform, Apache, MySQL, PHP and Perl, and it allows you to build WordPress site offline, on a local web server on your computer. This simple and lightweight solution works on Windows, Linux, and Mac – hence the “cross-platform” part.
In this tutorial, i am going to show you how to install and use xampp on linux ubuntu 22.04 system using terminal or command line.
How to install XAMPP on Ubuntu 22.04 using Terminal
Use the below given instructions for install and use xampp on linux ubuntu using terminal or command line:
- Step 1 – Update System Packages
- Step 2 – Download XAMPP On Ubuntu
- Step 3 – Install XAMPP On Ubuntu
- Step 4 – Open Web Dashboard and phpMyAdmin using Xampp
Step 1 – Update System Packages
First of all, open terminal or command and run the following command on command line to update system packages:
sudo apt update sudo apt upgrade -y
Step 2 – Download XAMPP On Ubuntu
Below is the command to download the complete for each 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:
With PHP 8.1
With PHP 8.0:
With PHP 7.4:
With PHP 7.3:
With PHP 7.2:
Step 3 – Install XAMPP On Ubuntu
Once the xampp has been downloaded, After that run the following command on the command line to install xampp on ubuntu:
chmod a+x xampp-linux-*-installer.run
After that, run the installer script.
### PHP 8.1 example ### sudo ./xampp-linux-x64-8.1.1-2-installer.run ### PHP 7.4 example ### sudo ./xampp-linux-x64-7.4.27-1-installer.run
1. XAMPP Setup Wizard
During the installation process, you can warn pop-ups. But you will probably click ‘Yes’ to start the installation process. Immediately after clicking on the downloaded file, the XAMPP Setup Wizard will open. Now click on the next button to proceed.
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. However, if you want to know more about Bitnami, you can check the box saying ‘Learn more about Bitnami for XAMPP.
5. Ready to Install
Now you will see another window with a message “Setup is now ready to start installing XAMPP on your computer” as shown below. 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
Once the installation is complete, you will be asked whether you want to start the control panel now, displaying the message “Do you want to start the control panel now?” Check the box and click on the ‘Finish’ button and see if XAMPP is working properly.
Step 4 – Open Web Dashboard and phpMyAdmin using Xampp
Now open web browser and hit the following url into it:
To access phpMyAdmin page use:
In this tutorial, i have shown to you how to install and use xampp on linux ubuntu 22.04 system using terminal or command line.