Step 1: Download the installation package
The first step is to download the XAMPP package for Linux from the official Apache Friends website:
https://www.apachefriends.org/index.html
Step 2: Make the installation package executable
We will install the package through the Ubuntu command line, The Terminal. In order to open the Terminal, either use the Dash or the Ctrl+Alt+T shortcut. After the Terminal is open, you need to move to your Downloads folder to access the file.
Move to the Downloads folder by using the following command:
$ cd /home/[username]/Downloads
The installation package you downloaded needs to be made executable before it can be used further. Run the following command for this purpose:
$ chmod 755 [package name]
Example:
$ chmod 755 xampp-linux-x64-7.2.10-0-installer.run