Steps To Take To Install XAMPP 8.0.3 On Linux Ubuntu 20.04 LTS Desktop Or Server Edition.

Setting up a web server can be a long process as you have to install software packages such as Apache, MariaDB, XAMPP and PHP. It gets challenging when a developer has to resolve issues to do with software dependancies, updates, web server configuration and maintanance tasks all while trying to develop a web application. XAMPP is a packaged application that comes with everything needed to setup a web server on almost any operating system i.e Windows, MacOS or Linux and allows a web developer to focus more on building a web application. It is a widely used application that can host almost any type of web page with ease. It comes with a control panel to start and stop services and also options for making configuration changes to web server components. XAMPP is maintanied by BITNAMI a company that specialises in packaged applications for any platform. Some of the applications that they offer are WORDPRESS, JOOMLA, REDMINE, DRUPAL, OWNCLOUD, PRESTASHOP, MEDIAWIKI and alot more! Continue reading this  tutorial to learn how to install XAMPP 8.03 On Linux Ubuntu 20.04 LTS desktop or server in edition  in a few steps. A FREE! video tutorial is also available. Click on the button below to watch it NOW!


In order to complete this tutorial successfully and without challenges the following items may be needed. Please ensure to have these items available before taking implementation action on this tutorial:
1) The XAMP installation files for Linux Ubuntu 20.04 LTS
2) A desktop or laptop with atleast a  dual core processor, 4GB RAM and 100 GB of free disk space
3) Linux Ubuntu 20.04 LTS desktop or server edition
4) A web browser (Google Chrome, Mozilla Firefox, Microsoft Edge or Safari)


1) Go to the XAMPP website and download the installation fille for LINUX
2) Change the file permissions to 755 and run the installation file
3) Install XAMPP and create a XAMPP desktop shortcut
4) Test the XAMPP server and configure services to start automatically.

Step 1: Go To The XAMPP Website And Download The Installation File For Linux.

1) Open any web browser and go to On the XAMPP FOR LINUX section click on the DOWNLOAD (64 BIT) button on 8.0.3 / PHP 8.0.3

2) Alternatively you can download the file from the Linux terminal application. To do this right click on the DOWNLOAD (64 BIT) button and click on COPY LINK or COPY DOWNLOAD LINK. Open the terminal application and run the following command:

wget xampp-download-link

Step 2: Change The File Permissions To 755 And Run The Installation File

3) Once the download process is complete the next step is to change the permissions on the installation file to 755. This change will set Read, Write and Execute permissions for the owner of the file and Read / Write permissions for every other user on the ubuntu computer.

Ensure that your working directory is the directory where the XAMPP installation file is located and run the following command:

sudo chmod 755

4) Run the following command to start the installation process. A graphical installation wizard will appear when the command executes successfully:

sudo ./

Step 3: Install XAMPP And Create A XAMPP Desktop Shortcut

5) A XAMPP SETUP WIZARD will be displayed. To start the installation process click on the NEXT button.

6) The XAMPP SETUP WIZARD allows you to choose components that you would like to install or leave out. By default the XAMPP CORE FILES componenet and the XAMPP DEVELOPER FILES component are selected. We recommend that you do not make any changes on this page and simply click on NEXT.

7) The XAMPP SETUP wizard will now display the directory of where XAMPP will be installed. On Ubuntu systems this directory is usually “/opt/lampp/”. Click on NEXT to proceed

8) You will now see information about BITNAMI as well as a link to the XAMPP product age on the BITNAMI website. Click on this link to learn more about BITNAMI for XAMPP. Click on NEXT to proceed with the installation.

9) If the XAMPP SETUP wizard detects no errors or issues with the installation a READY TO INSTALL page will be displayed, click on NEXT to proceed.

10) The setup wizard will now start the process of extracting and installing all the XAMPP componets. This process should not take more than 10 minutes to complete.

12) The setup wizard will display a message informing you that the installlation process is complete. If you would like to start XAMPP at this point, click on the LAUNCH XAMPP check box and click on FINISH.

13) As you use XAMPP on a daily basis you need to know how to start and stop XAMPP services. The following command is used to start XAMPP services:

 sudo /opt/lampp/lampp start

And the following command is used to stop XAMPP services:

sudo /opt/lampp/lampp stop

The XAMPP CONTROL PANEL can be started by running the following command:

sudo /opt/lampp/

Create The XAMPP Desktop Shortcut

14) To make it easier and quicker to lauch the XAMPP control panel, we recommend that you create a desktop shortcut. To do this create a file named xampp.desktop by running the following command:

nano ~/Desktop/xampp.desktop

If you do not have the nano text editor install it by running the following command:

sudo apt-get install nano.

15)Now copy and paste the following configuration into the file:

#!/usr/bin/env xdg-open
[Desktop Entry]
Exec=sh -c “pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY sudo /opt/lampp/”

To save changes and close the file, press CONTROL + O then CONTROL + X

16) Go  to the ubuntu desktop, right click on the newly created file and click on ALLOW LAUNCHING. The icon of the file will change to the XAMPP icon.

17) Right click on the file and click on OPEN. Type in your password on the authentication window that appears and the XAMPP control panel should open.

Step 4: Test The XAMPP Server And Configure Services To Start Automatically.

18) To test if the XAMPP Server is working, with all services running open any web browser and browse to http://localhost/dashboard.

If the server is working correctly you will see a web page similar to the one shown in the image on the right.

19) To configure XAMPP services to start up automatically, open the Ubuntu terminal application and run the following commands:

1. Create a script in init.d called lampp
sudo gedit /etc/init.d/lampp-auto-start

2. Paste this code on the script and save

/opt/lampp/lampp start

3. Give -x permissions to the file
sudo chmod +x /etc/init.d/lampp-auto-start

4. Use update-rc.d to install init the script to all runlevels by typing
sudo update-rc.d lampp-auto-start defaults

Restart your ubuntu computer, open the XAMPP control panel and check if the XAMPP services are runnin