How to Install XAMPP on Linux

Introduction

XAMPP is a popular, open-source web development platform used by professionals and enthusiasts worldwide. It stands for Cross-Platform (X), Apache (A), MariaDB (M), PHP (P), and Perl (P). This software package provides an easy way to create a local web server environment for testing and development purposes. In this article, we will guide you through the installation process of XAMPP on a Linux system.

Prerequisites

– A computer running a Linux distribution

– Internet connection

– Administrator access (root privileges)

Step 1: Download XAMPP for Linux

First, go to the official XAMPP website at https://www.apachefriends.org/index.html and click on the “Download” button corresponding to the Linux operating system. Download the latest version in your preferred language

Step 2: Give Execute Permissions to the Installer

Open up your terminal, navigate to the folder where you have downloaded the XAMPP installation file. Add execute permissions to the installer with the following command

sudo chmod +x xampp-linux-*-installer.run

Replace ‘*’ with the specific version you’ve downloaded.

Step 3: Run the XAMPP Installer

Now that you have given execute permissions to the installer, you can run it with this command:

sudo ./xampp-linux-*-installer.run

Again, replace ‘*’ with your downloaded version. You will be prompted with a graphical interface that will guide you through the installation process.

Step 4: Follow Installation Wizard

After launching the installer, follow these steps in the installation wizard:

– Click “Next” on each screen.

– Choose which components you want to install. You may select all of them or just the required ones like Apache, MySQL, PHP, and phpMyAdmin.

– Choose your preferred XAMPP installation location.

– Click “Next” until you reach the end, and then click “Finish.”

Step 5: Start XAMPP Services

Once the installation is complete, go to the installation directory and locate the ‘lampp’ script. Use the following command to start the XAMPP services:

sudo ./lampp start

Step 6: Verify Successful Installation

To ensure that XAMPP has been installed successfully, open your favorite web browser and type “http://localhost” or “http://127.0.0.1” in the address bar. You should see a XAMPP welcome page.

Conclusion

Congratulations! You have successfully installed XAMPP on your Linux system. You can now proceed to create and test your websites locally, manage databases using phpMyAdmin, and develop web applications using PHP and MariaDB. Just remember to keep your XAMPP installation up-to-date as new versions are released for security and functionality purposes. Happy coding!

The post How to Install XAMPP on Linux appeared first on The Tech Edvocate.

Related Posts

Leave a Reply

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