Web Hosting

How To Install XAMPP on Fedora 41/40/39/38

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.

Original content from computingforgeeks.com - post 21561
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, 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
install xampp centos 01

Accessing phpMyAdmin:

http://localhost/phpmyadmin
install xampp centos 02

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.

More on Fedora:

Related Articles

Fedora How To Install Fedora 39 Linux – Complete Steps Web Hosting How to Choose the Right Domain Name for your eCommerce Business Debian Set Default Vagrant Provider to VirtualBox or Libvirt Arch Linux Convert mp4/mkv/WebM to mp3 on Linux using FFmpeg

9 thoughts on “How To Install XAMPP on Fedora 41/40/39/38”

  1. 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.

    Reply
  2. 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?

    Reply

Leave a Comment

Press ESC to close