How To Install Xampp In Linux

If you are a web developer or aspiring to be one, you would have probably heard about XAMPP. It is a free and open-source cross-platform web server solution stack package, mainly used for web development projects. This tutorial will guide you through the process of installing XAMPP on your Linux machine.


Before proceeding with the XAMPP installation, you should have sudo privileges on your machine as the installation requires administrative rights.

Step 1: Download XAMPP

The first step is to download the XAMPP package from the official Apache Friends website. You may use the following command in your terminal:


Step 2: Make the installer executable

Once the download is completed, you have to make the installer executable. Execute the following command:

    chmod +x

Step 3: Launch the setup wizard

Now, you can start the installer by running:

    sudo ./

This will open the XAMPP setup wizard. Follow the instructions on the wizard to successfully install XAMPP on your Linux machine.

Step 4: Start XAMPP

After the installation is done, you can start XAMPP with the following command:

    sudo /opt/lampp/lampp start

If everything went well, you would see a message saying that XAMPP has started successfully.


That’s it! Now you have successfully installed XAMPP on your Linux machine. You can start developing your web applications on your local server. Remember, if you want to turn off XAMPP, you can do so with the sudo /opt/lampp/lampp stop command. Happy coding!