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.

XAMPP

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

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.0 ###
wget https://www.apachefriends.org/xampp-files/8.0.1/xampp-linux-x64-8.0.1-0-installer.run

### PHP 7.4 ###
wget https://www.apachefriends.org/xampp-files/7.4.14/xampp-linux-x64-7.4.14-0-installer.run

### PHP 7.3 ###
wget https://www.apachefriends.org/xampp-files/7.3.26/xampp-linux-x64-7.3.26-0-installer.run

The binary installer should be executable.

### PHP 8.0 ###
chmod a+x xampp-linux-x64-8.0.1-0-installer.run

### PHP 7.4 ###
chmod a+x xampp-linux-x64-7.4.14-0-installer.run

### PHP 7.3 ###
chmod a+x xampp-linux-x64-7.3.26-0-installer.run

Then run the XAMP installer:

### PHP 8.0 ###
sudo ./xampp-linux-x64-8.0.1-0-installer.run

### PHP 7.4 ###
sudo ./xampp-linux-x64-7.4.14-0-installer.run

### PHP 7.3 ###
sudo ./xampp-linux-x64-7.3.26-0-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

– Choose location where XAMPP packages will be installed.

– 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

XAMPP is installed to /opt/lampp/. To start XAMPP services, run:

$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 8.0.1-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
install xampp centos 01

Accessing phpMyAdmin:

http://localhost/phpmyadmin
install xampp centos 02

Stopping and Uninstalling XAMPP on CentOS 8

To stop XAMPP services run:

$ sudo /opt/lampp/lampp stop
Stopping XAMPP for Linux 8.0.1-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:

How To Install LAMP Stack on Ubuntu

How To Install LAMP Stack on Debian

How To Install LAMP Stack on Fedora

Your support is our everlasting motivation,
that cup of coffee is what keeps us going!


As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.

LEAVE A REPLY

Please enter your comment!
Please enter your name here