This guide will walk you through the installation of XAMPP on Fedora 34/33/32/31/30. XAMPP is easy to install and use Apache distribution containing MariaDB, PHP, and Perl. It was originally created for Windows environments but can be run on Linux systems as well.

XAMPP

The recommended setup for Fedora and any other Linux systems is LAMP or LEMP stack. See our installation guide How to install LAMP Stack on Fedora. If you want to install XAMPP on Fedora 34/33/32/31/30, follow the steps below.

Step 1: Update system

Ensure your Fedora system is updated.

sudo dnf -y update
sudo dnf -y install libnsl

Step 2: Download and Install XAMPP on Fedora 34/33/32/31

Once the system is updated, download XAMPP installer.

Install wget:

sudo dnf -y install wget

Download XAMPP:

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

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

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

Give the package execution bit.

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

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

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

Run the installer.

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

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

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

3 – Choose location where XAMPP packages will be installed.

4 – Agree to install XAMPP on Fedora

For a successful installation of XAMPP on Fedora, you should get an output which looks like below.

 Installing
 0% ______________ 50% ______________ 100%
 #########################################

----------------------------------------------------------------------------
Setup has finished installing XAMPP on your computer.

Step 3: Start and use XAMPP on Fedora

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

$ sudo /opt/lampp/lampp start

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.6-0...
XAMPP: Stopping Apache...not running.
XAMPP: Stopping MySQL...ok.
XAMPP: Stopping ProFTPD...ok.

That’s all on installing XAMPP on Fedora Desktop. To uninstall XAMPP on Fedora, run:

cd /opt/lampp
sudo ./uninstall
sudo rm-rf /opt/lampp

Enjoy using XAMPP on Fedora 34/33/32/31/30 Linux system.

More on Fedora:

Install FreeOffice on Fedora

Install Zoom Client on Fedora

Setup Sway Tiling Window Manager on Fedora with Waybar

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