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.
Prerequisite
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:
wget https://www.apachefriends.org/xampp-files/7.4.9/xampp-linux-x64-7.4.9-0-installer.run
Step 2: Make the installer executable
Once the download is completed, you have to make the installer executable. Execute the following command:
chmod +x xampp-linux-x64-7.4.9-0-installer.run
Step 3: Launch the setup wizard
Now, you can start the installer by running:
sudo ./xampp-linux-x64-7.4.9-0-installer.run
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.
Conclusion
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!