XAMPP stack is an open source Apache Distribution consists of cross-platform software (X), Apache (A), Maria DB (M), PHP (P) and perl (P). Developers normally use this platform for testing of softwares and webpages. In this tutorial we will learn how to Install XAMPP in Linux.
Install XAMPP
First, download the XAMPP package from Apache Friends official website.
Click on XAMPP for Linux as shown in the below image to download the package.
![](https://unixcop.com/wp-content/uploads/2022/05/image-1024x863.png)
Now change the directory to where your package is downloaded. In my case it has been present in the Download directory. Use the following command to do so:
cd /home/waqar/Downloads
![](https://unixcop.com/wp-content/uploads/2022/05/image-1.png)
You can also see the package in the Downloads directory in GUI.
![](https://unixcop.com/wp-content/uploads/2022/05/image-2.png)
Now, give the file executable permission using the following command:
chmod +x xampp-linux-x64-8.1.5-0-installer.run
Now, execute the script to install XAMPP using the following command:
./xampp-linux-x64-8.1.5-0-installer.run
XAMPP installation wizard will open. Click on Next as shown in the image below:
![](https://unixcop.com/wp-content/uploads/2022/05/image-3.png)
Select the components you want to install and then click Next as shown in the below image:
![](https://unixcop.com/wp-content/uploads/2022/05/image-4.png)
Now prompt will show you the installation directory of XAMPP Click Next as shown in the following image.
![](https://unixcop.com/wp-content/uploads/2022/05/image-5.png)
Uncheck the box as shown in the below image if you don’t want to install additional packages then click Next.
![](https://unixcop.com/wp-content/uploads/2022/05/image-6.png)
Now setup is ready to install XAMPP click next as shown in the image below:
![](https://unixcop.com/wp-content/uploads/2022/05/image-7.png)
![](https://unixcop.com/wp-content/uploads/2022/05/image-8.png)
XAMPP is being installed as shown image above.
![](https://unixcop.com/wp-content/uploads/2022/05/image-9.png)
XAMPP installation is complete as shown in above image. Click on Finish.
XAMPP launches its control panel as shown in the below image:
![](https://unixcop.com/wp-content/uploads/2022/05/image-10.png)
Click on the Manage Servers tab ass shown in the above image to see the available services and their status.
![](https://unixcop.com/wp-content/uploads/2022/05/image-11.png)
Verify XAMPP Installation:
After installation is complete open the following url in your browser to verify the XAMPP installation:
http://localhost/dashboard
![](https://unixcop.com/wp-content/uploads/2022/05/image-12.png)
Next, verify Maria DB service by opening the following url;
http://localhost/phpmyadmin
![](https://unixcop.com/wp-content/uploads/2022/05/image-14.png)
Now your XAMPP Installation is verified successfully. you can now use it according to your need.
Uninstall XAMPP:
To uninstall XAMPP move to /opt/lampp directory using the following command:
cd /opt/lampp
![](https://unixcop.com/wp-content/uploads/2022/05/image-15.png)
execute the following command to uninstall XAMPP:
./uninstall
Now a prompt will appear asking you to uninstall XAMPP. Click on Yes as shown in the image below;
![](https://unixcop.com/wp-content/uploads/2022/05/image-16.png)
As shown in the image below XAMPP is being uninstalled:
![](https://unixcop.com/wp-content/uploads/2022/05/image-17.png)
After uninstallation completes you will see the following wizard. Click on OK.
![](https://unixcop.com/wp-content/uploads/2022/05/image-18.png)
Lastly, Remove the directory /opt/lampp using the following command:
rm -rf /opt/lampp
![](https://unixcop.com/wp-content/uploads/2022/05/image-19.png)
Uninstallation of XAMPP is successful.