install xampp on ubuntu 18.10

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.

https://www.apachefriends.org/download.html

install xampp on ubuntu 18.10

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

Example:

$ sudo chmod +x xampp-linux-x64-7.3.1-0-installer.run 
install xampp on ubuntu 18.10

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]

Example:

$ sudo ./xampp-linux-x64-7.3.1-0-installer.run 
install xampp on ubuntu 18.10

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:

install xampp on ubuntu 18.10

The following dialog lets you choose XAMPP components that you want to install.

install xampp on ubuntu 18.10

Keep the default settings intact and then click Next. The following dialog will inform you about the location where XAMPP will be installed.

install xampp on ubuntu 18.10

Now, Click Next to continue.

install xampp on ubuntu 18.10

Click the Next button after which the following dialog will appear:

install xampp on ubuntu 18.10

Finally, Click Next to begin the installation process:

install xampp on ubuntu 18.10

When the installation is complete, click the Next button. The following dialog indicates the completion of the installation process.

install xampp on ubuntu 18.10

XAMPP is installed successfully in your system. Click Finish. Now, XAMPP’s Graphical User Interface will start.

install xampp on ubuntu 18.10

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
install xampp on ubuntu 18.10

This output shows that XAMPP is started and already running. Please note that you need to manually start XAMPP each time you restart your system.

If you get the following output after starting XAMPP, it means that Net Tools are not installed on your system:

install xampp on ubuntu 18.10

In order to install Net Tools, run the following command as root:

$ sudo apt install net-tools
install xampp on ubuntu 18.10

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
install xampp on ubuntu 18.10

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:

http://localhost

The following webpage verifies that XAMPP is successfully installed and running on your system:

install xampp on ubuntu 18.10

(Optional) Step 8: Set XAMPP Security

If you want to secure your XAMPP installation. Then you can check and change the following option:

  1. If MySQL is accessible via a network.
  2. MySQL/phpMyAdmin user pma password.
  3. Change the root password for MySQL.
  4. Change the FTP password for XAMPP user.

Run the following command and do it:

$ sudo /opt/lampp/lampp security
install xampp on ubuntu 18.10

Uninstall XAMPP

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 lampp folder through the following command:

$ sudo ./uninstall

The following dialog will appear asking you if you want to uninstall XAMPP and all of its modules:

install xampp on ubuntu 18.10

Click Yes to proceed with the uninstall process.

install xampp on ubuntu 18.10

You will get the following message after successful uninstallation of XAMPP.

install xampp on ubuntu 18.10

Click OK.

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.

Also see: How to install WordPress on XAMPP Ubuntu 18.10

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.