How To Install XAMPP On Ubuntu 24.04|22.04

XAMPP is an open source and free to use software package that provides Apache distribution containing MariaDB, PHP, and Perl. XAMPP installer is available for Windows, Linux and macOS operating systems. The platform is build specifically for developers working on their Laptops and Desktops – To be able to build, deploy and test web applications without worrying about server hosting requirements.

Once the application has been tested to be working on the Dev machine only then can it be moved to UAT and Production environments where an actual Linux Server is setup with all dependencies installed. In this short guide you’ll be able to install and use XAMPP On Ubuntu 24.04|22.04.

The setup requirements are:

  • User account with sudo privileges
  • SSH Access to the local Ubuntu 24.04/22.04 machine or direct terminal on Desktop session.
  • A ready Ubuntu 24.04/22.04 system

Step 1: Update System

If you don’t have any critical application running and afraid of breaking it you can run the following commands to ensure your system is updated.

sudo apt update
sudo apt upgrade -y

Once the system is upgraded go ahead and download XAMPP application.

Step 2: Download XAMPP On Ubuntu 24.04|22.04

Head over to XAMPP Downloads page and pull the latest release of XAMPP. Choose the version that matches the PHP version you’re doing software developments.

With PHP 8.2:

wget https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/8.2.12/xampp-linux-x64-8.2.12-0-installer.run

With PHP 8.1:

wget https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/8.1.25/xampp-linux-x64-8.1.25-0-installer.run

With PHP 8.0:

wget https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/8.0.30/xampp-linux-x64-8.0.30-0-installer.run

Step 3: Install XAMPP On Ubuntu 24.04|22.04

Once the application has been downloaded give it execution bits.

chmod a+x xampp-linux-*-installer.run

Then run the installer script.

### PHP 8.2 example ###
sudo ./xampp-linux-x64-8.2.12-0-installer.run

### PHP 8.1 example ###
sudo ./xampp-linux-x64-8.1.25-0-installer.run

Then installation screen will open. Hit ‘Forward‘ to start the process.

Select the components to install.

Agree to the default installation directory. Make sure you have free space in /opt mount directory.

Click ‘Forward‘ to start the installation:

The installation of XAMPP on Ubuntu 24.04|22.04 should start.

Click on Finish to Launch the application and start using it.

Under Welcome page section you can open application folder and upload web application files.

Services status can be managed under Manage Servers section.

Step 4: Accessing Web Dashboard and phpMyAdmin page

If the installation was successful and both web server and database services are started you should be able to access them from web browser.

Access Apache Web dashboard:

http://localhost/dashboard
# OR
http://SERVER_IP/dashboard

To access phpMyAdmin page use:

http://localhost/phpmyadmin
# OR
http://SERVER_IP/phpmyadmin

This is how it looks. For uninstallation, a script is provided.

cd /opt/lampp
sudo ./uninstall

Enjoy using XAMPP to host your locally Developed web applications on an Ubuntu system. Also check more guides available on our website.

Join our Linux and open source community. Subscribe to our newsletter for tips, tricks, and collaboration opportunities!

Recent Post

Unlock the Right Solutions with Confidence

At CloudSpinx, we don’t just offer services - we deliver clarity, direction, and results. Whether you're navigating cloud adoption, scaling infrastructure, or solving DevOps challenges, our seasoned experts help you make smart, strategic decisions with total confidence. Let us turn complexity into opportunity and bring your vision to life.

Leave a Comment

Your email address will not be published. Required fields are marked *

Related Post

Statping is an opensource website and http monitor. It provides very easy to use status page that you can further […]

Starship is a free opensource shell prompt available for Linux, Windows and MacOS. It is extremely fast, very light and […]

PyCharm is the ultimate IDE for Python Developers. The PyCharm IDE is packaged in two flavors – the Community Edition […]

Let's Connect

Unleash the full potential of your business with CloudSpinx. Our expert solutions specialists are standing by to answer your questions and tailor a plan that perfectly aligns with your unique needs.
You will get a response from our solutions specialist within 12 hours
We understand emergencies can be stressful. For immediate assistance, chat with us now

Contact CloudSpinx today!

Download CloudSpinx Profile

Discover the full spectrum of our expertise and services by downloading our detailed Company Profile. Simply enter your first name, last name, and email address.