XAMPP is very easy to install Apache Distribution for Linux, Solaris, Windows, and Mac OS X. XAMPP stands for cross-platform(X), Apache(A) server, MariaDB(M), PHP(P) and Perl(P). It is built by Apache Friends and basically serves as a local host or a local server. Through this local server, you can test your PHP, WordPress websites before uploading it to the remote web server or computer. In this article, I will walk you through step-by-step procedures to install XAMPP on Ubuntu 18.10. You can then verify the installation by using a few URLs. You can also go through the uninstall process that will help you in uninstalling the software if the need arises.
This step-by-step guide will help you to successfully install XAMPP on Ubuntu 18.10. You can apply this tutorial for any version of Ubuntu or any other GNU/Linux distro like Linux Mint, Kubuntu, Ubuntu e.t.c. If you have a 32-bit computer, you cannot use XAMPP on a 32-bit system. Let’s get Going!
Install XAMPP on Ubuntu 18.10
Please follow the following steps in order to download, install and configure XAMPP on your system:
Step 1: Download the installation package
The first step is to download the XAMPP package for Linux from the official Apache Friends website.
Download the latest version of XAMPP with Latest Version of PHP. Click on the download button after which you will be prompted to Run the package or Save it to your system. We recommend downloading the package by clicking the Save File option. After which, your downloaded file will be saved to the Downloads folder by default.
Step 2: Make the installation package executable
Now, we will install the XAMPP package through 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 Downloads/
The XAMPP installation package you downloaded needs to be made executable before it can be used. Run the following command for this purpose:
$ sudo chmod +x [xampp-package-name
$ sudo chmod +x xampp-linux-x64-7.3.1-0-installer.run
Now, the installation package is in executable format and can be used to install XAMPP.
Step 4: Launch the Setup Wizard
Run the following command in order to launch the graphical setup wizard of XAMPP.
$ sudo ./[package-name]
$ sudo ./xampp-linux-x64-7.3.1-0-installer.run
This will launch the Setup wizard that will direct you with the rest of the installation procedure.
Step 5: Work through the graphical setup wizard
Now that the Setup Wizard for XAMPP by Bitnami is launched as follows, click the Next button to start the installation process:
The following dialog lets you choose XAMPP components that you want to install.
Keep the default settings intact and then click Next. The following dialog will inform you about the location where XAMPP will be installed.
Now, Click Next to continue.
Click the Next button after which the following dialog will appear:
Finally, Click Next to begin the installation process:
When the installation is complete, click the Next button. The following dialog indicates the completion of the installation process.
XAMPP is installed successfully in your system. Click Finish. Now, XAMPP’s Graphical User Interface will start.
Step 6: Launch XAMPP through the Terminal
In order to launch XAMPP through your Ubuntu Terminal without starting the Graphical User Interface, enter the following command as root:
$ sudo /opt/lampp/lampp start
This output shows that XAMPP is started and already running. Please note that you need to manually start XAMPP each time you restart
If you get the following output after starting XAMPP, it means that Net Tools are not installed on your system:
In order to install Net Tools, run the following command as root:
$ sudo apt install net-tools
After the installation of Net Tools, you will be successfully able to launch and use XAMPP.
Launch XAMPP Graphical User Interface. (Optional)
You can also start the XAMPP’s GUI by running the following command on your terminal as root:
$ sudo /opt/lampp/manager-linux-x64.run
Step 7: Verify Installation
After you have installed XAMPP on your Ubuntu system, it is good practice to verify the installation. To do so, enter the following URL in your browser:
The following webpage verifies that XAMPP is successfully installed and running on your system:
(Optional) Step 8: Set XAMPP Security
If you want to secure your XAMPP installation. Then you can check and change the following option:
- If MySQL is accessible via a network.
- MySQL/phpMyAdmin user pma password.
- Change the root password for MySQL.
- Change the FTP password for XAMPP user.
Run the following command and do it:
$ sudo /opt/lampp/lampp security
It is also important to learn how to completely uninstall and remove XAMPP from your Ubuntu system if you ever need to do so.
Open your Ubuntu Terminal and move to the directory where XAMPP is installed. That is:
$ cd /opt/lampp
The next step is to run the uninstall program you will find in the
$ sudo ./uninstall
The following dialog will appear asking you if you want to uninstall XAMPP and all of its modules:
Click Yes to proceed with the uninstall process.
You will get the following message after successful uninstallation of XAMPP.
Another important step is to manually remove the lampp folder along with all its files and sub-folders. The following command will help you in doing so:
$ sudo rm -r /opt/lampp
Now, XAMPP and all its modules are out of your system. You can also delete the downloaded install package if you want.
In this tutorial, you have learned a step-by-step procedure to install XAMPP on Ubuntu 18.10 System. From downloading the installation package to installing XAMPP, verifying the installation and securing the XAMPP installation, I have guided you through the whole procedure. I have also provided enough information about uninstalling XAMPP if you ever need to do that.