This guide will walk you through the installation of XAMPP on Fedora Linux. 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.

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, 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
Once the system is updated, download XAMPP installer. Install wget tool.
sudo dnf -y install wget
Run the commands below to download the release of XAMPP matching required PHP version.
### PHP 8.2 ###
wget https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/8.2.12/xampp-linux-x64-8.2.12-0-installer.run
### PHP 8.1 ###
wget https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/8.1.25/xampp-linux-x64-8.1.25-0-installer.run
### PHP 8.0 ###
wget https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/8.0.30/xampp-linux-x64-8.0.30-0-installer.run
Give the package execution bit.
chmod a+x xampp-linux-x64-*-installer.run
Run the 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 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
Install libxcrypt-compat
package.
sudo dnf install -y libxcrypt-compat
XAMPP is installed to /opt/lampp/. To start XAMPP services, run:
sudo /opt/lampp/lampp start
To verify installation of XAMPP on Fedora visit the Apache web page:
http://localhost

Accessing phpMyAdmin:
http://localhost/phpmyadmin

4) Stop / Uninstall XAMPP
To stop XAMPP services run:
$ sudo /opt/lampp/lampp stop
Stopping XAMPP for Linux -8.2.12-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 Linux system. See recommended books to read.
- Best Books to learn Web Development – PHP, HTML, CSS, JavaScript and jQuery
- Best Books To Master Web Design
- Best Books To Learn CSS & CSS3
More on Fedora:
- Install FreeOffice on Fedora
- Setup Sway Tiling Window Manager on Fedora with Waybar
- Install Zoom Client on Fedora
I am searching on google how to install xampp and I find your post. And after reading your content, hopefully, now we can install xampp. Thank you!
Tried on Fedora 39 but getting error
egrep: warning: egrep is obsolescent; using grep -E
XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system.
I just tested on Fedora 39 and it works. Where does it fail for you?
same here
Fedora 39 but getting error kde
egrep: warning: egrep is obsolescent; using grep -E
XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system.
➜ ~
Hi, there.
I got the same error on a Fedora 39 fresh installation yesterday.
published it here https://community.apachefriends.org/f/viewtopic.php?f=17&t=83596&sid=a56aef996ba51a3b2c103f8cf692233c
egrep: warning: egrep is obsolescent; using grep -E
XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system.
but maybe you know a reason for that, or have a soluion
Hi. I got the same issue on a Fedora 39 fresh installation.
After I installed Xampp ( xampp-linux-x64-8.2.12-0-installer.run ) and tried to run it, the terminal returned the same error:
egrep: warning: egrep is obsolescent; using grep -E
XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system.
I googled for a solution, but didn’t find anything valuable for the case of a fresh installation of Fedora.
Can you help?
sudo dnf install -y libxcrypt-compat
hi any status update on this issue?
See updated package installation.
sudo dnf install -y libxcrypt-compat