How to install XAMPP server on CentOS 8

You can download this article in PDF format via the link below to support us.Download the guide in PDF formatClose

XAMPP is an Apache distribution packaged with MariaDB, PHP and Perl that is easy to install and use. XAMPP was originally created for the Windows environment, but has now evolved to support installation and use on Linux distributions. This is the easiest choice for users who don’t want the trouble of setting up LAMP or LEMP Stack on CentOS 8 systems. In this article, we show users how to install XAMPP on CentOS 8 Linux systems.

If you prefer LAMP or LEMP web stack, please refer to other guides on our website.

Step 1: Update the system

Make sure your CentOS system has been 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 that matches the PHP version you want.

### 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 enter the installation wizard where you will follow the 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 the installation screen.

1 piece – Accept the installation wizard.

2 -Select the components to be installed

3 -Select the location where you want to install the XAMPP package.

4 -Agree to install XAMPP on CentOS 8

Wait for the installation of Xentp 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 has been installed to /opt/lampp/. To start the XAMPP service, 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 the installation of XAMPP on CentOS 8, please visit the Apache web page:

http://localhost

Install xampp centos 01

Visit phpMyAdmin:

http://localhost/phpmyadmin

Install xampp centos 02

Stop and uninstall XAMPP on CentOS 8

To stop the XAMPP service, 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

Use XAMPP on CentOS 8 Linux system.Visit the documentation website and explore extended features XAMPP uses 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

You can download this article in PDF format via the link below to support us.Download the guide in PDF formatClose

Sidebar