Skip to content
Follow
Ubuntu Linux

How to Install XAMPP on Ubuntu 24.04

Richard
Written by
Richard
Mar 2, 2025 Updated Sep 15, 2026 2 min read
How to Install XAMPP on Ubuntu 24.04
How to Install XAMPP on Ubuntu 24.04

XAMPP is a free software bundle that puts a web server, a database, and PHP tools onto your computer in one single package so you can build and test websites locally on Ubuntu 24.04 before putting them online.

Advertisement

Setting up version 8.2.12 or newer of this local server environment takes just a few steps, starting with a download straight from the official Apache Friends website.

⚡ Quick Answer

Download the XAMPP installer script from its website and save it. Make the script executable using `chmod 755` in the terminal, then run it with `sudo ./xampp-linux-x64-*-installer.run`. Follow the on-screen prompts to complete the installation.

Advertisement

Download XAMPP

To install XAMPP on Ubuntu 24.04, you need to download the official Linux installer from the SourceForge project page. Open your terminal and use the wget command to grab the installer file directly to your computer. Once the download finishes, you must change the file permissions with chmod so the system can run the setup script.

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

Running a terminal command makes the downloaded installer executable.

Terminal prompts guide selection of specific XAMPP components during setup. Launching the XAMPP application manages web servers and databases after the installation finishes.

🐧Bash / Shell
sudo ./xampp-linux-*-installer.run
XAMPP installer wizard interface on Ubuntu 24.04
XAMPP installer wizard interface on Ubuntu 24.04

Choose the necessary XAMPP core files and developer files, then proceed.

Advertisement
XAMPP components installation selection screen
XAMPP components installation selection screen

The installer finishes its task.

XAMPP components install progress
XAMPP components install progress

Click the Finish button to open the application.

XAMPP launch app
XAMPP launch app

The Manage Servers tab controls server states.

XAMPP App manager
XAMPP App manager

Command-line control provides an alternative method. Executing the command below starts and stops all servers.

Advertisement
🐧Bash / Shell
sudo /opt/lampp/lampp stop
sudo /opt/lampp/lampp start

Operation

Operating XAMPP on Ubuntu 24.04 relies on the /opt/lampp folder to store all your web server files and databases. After you start the services, open a web browser and go to your server IP address to check that the Apache web server is running. You can also click the phpMyAdmin link on the welcome page to manage your databases easily.

Browse to the server IP address or hostname to view the default Apache web page.

XAMPP web portal dashboard on Ubuntu 24.04
XAMPP web portal dashboard on Ubuntu 24.04

Click the PHPInfo link to display PHP information.

XAMPP web portal PHP info
XAMPP web portal PHP info

Click the phpMyAdmin link to manage MariaDB.

Advertisement
XAMPP web portal phpMyAdmin
XAMPP web portal phpMyAdmin

That completes the setup process.

XAMPP provides an efficient way to set up a local server environment on Ubuntu for PHP development.

  • XAMPP provides an efficient way to set up a local server environment on Ubuntu, facilitating PHP development.
  • The installation process is straightforward, requiring only a few terminal commands.
  • This package includes essential components such as Apache, MariaDB, and interpreters for PHP and Perl, streamlining web development.
  • Users can manage their servers easily through the XAMPP application or command line.
  • With XAMPP, you can easily create, run, and manage PHP-based websites and applications from a single installation, enhancing developer productivity.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

📚 Related Tutorials

How to Install GNOME Desktop on Ubuntu 24.04
Ubuntu Linux How to Install GNOME Desktop on Ubuntu 24.04
How to Install KDE Desktop on Ubuntu 24.04
Ubuntu Linux How to Install KDE Desktop on Ubuntu 24.04
How to Setup MariaDB Master Slave Replication on Ubuntu
Ubuntu Linux How to Setup MariaDB Master Slave Replication on Ubuntu
How to Install PHP on Ubuntu Linux
Ubuntu Linux How to Install PHP on Ubuntu Linux

2 Comments

Leave a Comment

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