How to Install XAMPP on Ubuntu

Want to learn how to install XAMPP on Ubuntu?

XAMPP is an acronym for cross-platform(X) Apache(A), MariaDB(M), PHP(P), and Perl(P). It is created by Apache Friends to unite all necessary tools and components needed into a single package which automates the process of configuration. This is contrary to the usual practice of package installation and configuration done separately. 

The software allows you to test a webpage or website by hosting it on a local network or server. This helps find bugs and errors that can arise from faulty code or design before the webpage or website goes public.

With that, XAMPP could be a useful addition to your system. Although it’s primarily available for Windows, XAMPP provides packages that are compatible with releases of Ubuntu as well.

If you’re someone looking for an in-depth guide on how to install XAMPP on Ubuntu, then you’ve come to the right place. We’ll guide you step-by-step on how you can install XAMPP on Ubuntu.

So, let’s begin!

Step 1. Downloading the XAMPP Package.

First and foremost, you need to have the necessary installation package for XAMPP. This can be downloaded from the official Apache Friends website.  

However, for the sake of simplicity, we’ll provide a step-by-step guide for the installation to ensure that you don’t encounter any errors.

To download the XAMPP installation package, take a look at the steps below:

  1. First, open your browser.
  2. Next, navigate to XAMPP’s main website by searching ‘Download XAMPP and clicking on the first result.
apache friends

Alternatively, you can head to the download page by clicking here.

  1. Afterward, navigate to the XAMPP for Linux section and download the package of your choice. For the sake of this guide, we’ll be downloading the latest XAMPP package available at the moment.
64 bit
  1. Lastly, click on Save File and press OK.
community

With the steps followed correctly, you have now downloaded the XAMPP installation package. With this, we can proceed to the next step.

Step 2. Configuring the Package to be Executable. 

Before you proceed to learn how to install XAMPP on Ubuntu, you need to make sure that the downloaded package is in an executable format.

To achieve this, follow these steps:

  1. Start by opening the Command Terminal. You can achieve this by pressing Ctrl + Alt + T on your keyboard.
  2. Next, type in the following command:
$ cd home/<username>/Downloads

Alternatively, you can type the following command:

$ cd Downloads
Install XAMPP on Ubuntu

This will change the directory to that of your Downloads folder, the default location of the downloaded XAMPP package. If you have a different download location, change your directory by executing the $ cd command.

  1. Once that is done, run the following command:
$ sudo chmod 755 <package name>
chmod

This will make the package executable. You can get the package’s name by copying it from your downloaded location.

  1. Last but not least, verify the installation using the following command in the Terminal:
$ ls –l <package name>.run
terminal

This command will output the user with permission to access the file.

Now that you’ve made the installation package executable, you are finally ready to install XAMPP on your computer.

Step 3. Installing XAMPP.

The final step of this guide is to install XAMPP on Ubuntu. For this purpose, you need to run a command on the Terminal and navigate through a Setup Wizard.

To install XAMPP without facing any issues, follow these steps:

  1. Start by opening the Command Terminal. You can achieve this by pressing Ctrl + Shift + T on your keyboard.
  2. Next, change the directory to the Downloads folder by running the following command:
$ cd home/<username>/Downloads

Alternatively, you can type the following command:

$ cd Downloads
Install XAMPP on Ubuntu
  1. After this, type the following command for installing the XAMPP package:
$ sudo ./<package name>

You should see a new window open. If that’s the case, you’ve successfully executed the XAMPP Setup Wizard.

  1. Proceed with the installation by clicking Next. In the Select Components panel, select the components that you wish to install. If you’re unsure of what to do, proceed with the default options and click Next.
Install XAMPP on Ubuntu
  1. Keep on selecting the settings you deem necessary, or leave them as default and proceed to click Next. You should see a window with a prompt that says ‘Ready to install‘. Click on Next to begin the installation.
Install XAMPP on Ubuntu
  1. Once the setup finishes the installation, click on Finish. This will exit the installer and launch XAMPP, provided that you have checked the Launch XAMPP checkbox.
Install XAMPP on Ubuntu

With the steps followed correctly, you should now have XAMPP installed on your computer.

Additional Information.

Now that we’re finished with the installation process, we can focus on additional commands that will help you with XAMPP.

You can start XAMPP by running the following command in the Terminal:

$ sudo /opt/lampp/lampp start

If you wish to stop XAMPP, you can type the following command:

$ sudo /opt/lampp/lampp stop

You can check out any additional queries regarding XAMPP on the official XAMPP FAQ page for Linux

If you wish to switch to another version or would like to uninstall XAMPP altogether, type the following command in the Terminal:

$ cd /opt/lampp
$ sudo ./uninstall

You should see a window appear asking whether you want to confirm the uninstallation. Click on Yes to confirm it.

You should see a window prompting you that the installation is complete. Click on OK to finish the uninstallation.

Lastly, remove the directory with the help of the following command:

$ sudo rm –r /opt/lamp

While on the topic of web hosting, managing the load on the server is of utmost importance. To ensure the flawless transferring of data without facing site crashes altogether, we need network interfaces that provide adequate bandwidth. Setting up Network Bonding will ensure that your network interfaces have adequate bandwidth at all times.

We hope this guide helped you learn how to install XAMPP on Ubuntu. If you have any questions regarding XAMPP or are facing difficulty understanding a part of the installation process, let us know in the comment section down below.

If this guide helped you, please share it. 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
windows

How to Fix Error 0x8007065E: Data of This Type Not Supported

Next Post
windows

How to Turn Off Narrator Voice in Windows 10

Related Posts