XAMPP is an easy to install and use Apache distribution packaged with MariaDB, PHP, and Perl. XAMPP was originally created for Windows environments but has evolved to support installations and usage on Linux distributions. It is the easiest alternative for users who doesn’t want the hassle of setting up LAMP or LEMP Stack on CentOS 8 system. In this article we show users how to install XAMPP on CentOS 8 Linux system.
If you prefer LAMP or LEMP Web stack refer to the other guides in our website.
Step 1: Update system
Ensure your CentOS system is updated.
sudo dnf -y update
sudo dnf -y install libnsl
Step 2: Download XAMPP on CentOS 8 / Rocky Linux 8
Install wget on CentOS 8:
sudo dnf -y install wget
Download XAMPP installer. Choose the installer matching the PHP version you want to have.
### PHP 8.2 ###
wget https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/8.2.0/xampp-linux-x64-8.2.0-0-installer.run
### PHP 8.1 ###
wget https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/8.1.12/xampp-linux-x64-8.1.12-0-installer.run
### PHP 8.0 ###
wget https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/8.0.25/xampp-linux-x64-8.0.25-0-installer.run
The binary installer should be executable.
chmod a+x xampp-linux-x64-*-installer.run
Then run the XAMP installer:
sudo ./xampp-linux-x64-*-installer.run
You will get to Setup Wizard where you follow installation prompts.
---------------------------------------------- ---------------------------------------------------------------------------- Welcome to the XAMPP Setup Wizard. ---------------------------------------------------------------------------- Select the components you want to install; clear the components you do not want to install. Click Next when you are ready to continue. XAMPP Core Files : Y (Cannot be edited) XAMPP Developer Files [Y/n] : y Is the selection above correct? [Y/n]: y ---------------------------------------------------------------------------- Installation Directory XAMPP will be installed to /opt/lampp Press [Enter] to continue: ---------------------------------------------------------------------------- Setup is now ready to begin installing XAMPP on your computer. Do you want to continue? [Y/n]: y ---------------------------------------------------------------------------- Please wait while Setup installs XAMPP on your computer.
Follow installation screens.
1 – Accept setup wizard.
2 – Select the components to install
3 – Choose location where XAMPP packages will be installed.
4 – Agree to install XAMPP on CentOS 8
Wait for the installation of XAMPP on CentOS 8 to complete.
----------------------------------------------------------------------------
Please wait while Setup installs XAMPP on your computer.
Installing
0% ______________ 50% ______________ 100%
#########################################
----------------------------------------------------------------------------
Setup has finished installing XAMPP on your computer.
Step 3: Start and use XAMPP on CentOS 8 / Rocky Linux 8
XAMPP is installed to /opt/lampp/. To start XAMPP services, run:
$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 8.0.19-0...
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
To verify installation of XAMPP on CentOS 8 visit the Apache web page:
http://localhost
Accessing phpMyAdmin:
http://localhost/phpmyadmin
Stopping and Uninstalling XAMPP on CentOS 8 / Rocky Linux 8
To stop XAMPP services run:
$ sudo /opt/lampp/lampp stop
Stopping XAMPP for Linux 8.0.19-0...
XAMPP: Stopping Apache...not running.
XAMPP: Stopping MySQL...ok.
XAMPP: Stopping ProFTPD...ok.
To uninstall XAMPP on CentOS 8, run:
cd /opt/lampp
sudo ./uninstall
sudo rm-rf /opt/lampp
Enjoy using XAMPP on CentOS 8 Linux system. Visit the documentation website and explore extending the functionalities of XAMPP using Add-ons.
Similar guides: