Categories: CentOSLinuxShell

How to install XAMPP on CentOS 8

XAMPP is a cross-platform used as a local host, providing them a suitable environment for developers to test web applications before transferring data to remote servers.

XAMPP is an open-source Apache distribution of a PHP development environment. It consists of the cross-platform software Apache, Maria DB, PHP, and Perl. XAMPP package is not available on the CentOS8 repository, so we have to download it from the XAMPP official site.

Download XAMPP

XAMPP Installation on CentOS

Open up the terminal and navigate to the folder where your file has been downloaded (Downloads).

Replace <filename> with the name of the xampp file that you downloaded in all commands below.

Use the chmod command to make them executable with the following command:

chmod a+x <filename>

The next step is to run the installer and launch the graphical setup wizard with the following command:

# ./<filename>

By default, XAMPP us install under /opt/lampp/ directory.

After the installation is completed, start the XAMPP by typing the following command:

# sudo /opt/lamp/lamp start

Now visit http://locahost/ for XAMPP output.

To visit PHPMyAdmin follow http://locahost/phpmyadmin/ link.

Uninstalling XAMPP

To uninstall the XAMPP navigate to the /opt/lampp directory, as shown in the figure.

Now type the following command to uninstall it.

# sudo ./uninstall

Now it will prompt you to confirm Uninstalling XAMPP. Just enter YES.

After successfully uninstall the XAMPP remove the directory by typing the following command:

# sudo rm –f /opt/lamp

Conclusion

In this tutorial, we learned how to Install and uninstall XAMPP on CentOS8. I hope this tutorial will help to set up XAMPP on CentOS8.

Karim Buzdar

About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. You can reach Karim on LinkedIn

Recent Posts

How to Install Magento 2 on AlmaLinux

Magento is a free and open-source e-commerce platform written in PHP. It is simple, easy…

1 year ago

How to Install ISPConfig Hosting Control Panel with Apache Web Server on Ubuntu 24.04

ISPConfig is an open-source control panel that allows users to manage multiple servers from a…

1 year ago

How to Test your Email Server (SMTP) Using the Telnet Command

As a Linux administrator, you may find it necessary to troubleshoot or test your Simple…

1 year ago

Managing Network Interfaces and Settings on Ubuntu 24.04 with nmcli

Ubuntu 24.04, like many modern Linux distributions, relies on the NetworkManager for managing network connections.…

2 years ago

Using Restic Backup on Ubuntu 24.04

Restic is a modern, open-source backup program designed for efficiency, security, and simplicity. It enables…

2 years ago

Installing phpMyAdmin on Rocky Linux 9 and Securing it with Let’s Encrypt SSL

phpMyAdmin is a popular free tool written in PHP intended to administer MySQL and MariaDB…

2 years ago