Skip to content
Follow
Ubuntu Linux

How to Install XAMPP on Ubuntu 24.04

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

Installing XAMPP on Ubuntu 24.04 puts a web server and database on your computer.

XAMPP is a free package that includes Apache (a web server), MariaDB (a database), and PHP. It’s designed to make setting up a local website development environment easy.

Instead of installing each piece separately, XAMPP bundles them together. This makes it much quicker to get started with web projects on your PC. Using the official installer ensures you get the latest XAMPP version, like XAMPP 8.2.12.

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

Download XAMPP

Downloading XAMPP on Ubuntu 24.04 begins with downloading the installer file from the official XAMPP website.

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

After downloading, you’ll need to run a command to make the installer executable.

The XAMPP installer itself will guide you through choosing which parts of XAMPP to install directly in your terminal. Once the installation wraps up, you can launch the XAMPP application to manage your web servers and databases.

🐧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 XAMPP core files and developer files you need, then proceed.

XAMPP components installation selection screen
XAMPP components installation selection screen

The installer will then complete its task.

XAMPP components install progress
XAMPP components install progress

Finally, click the Finish button to open the application.

XAMPP launch app
XAMPP launch app

Under the Manage Servers tab, you can start and stop all the servers.

XAMPP App manager
XAMPP App manager

Command-line control is also available. Run the command below to start and stop all servers.

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

Operation

Operating XAMPP on Ubuntu utilizes the /opt/lampp folder for your web servers and databases. You can see the default Apache page by visiting your server’s IP address or name. Links are also provided to check PHP information or manage databases using phpMyAdmin.

Browse to the server IP address or hostname to visit the XAMPP 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.

XAMPP web portal phpMyAdmin
XAMPP web portal phpMyAdmin

That should do it!

Conclusion:

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

How to install XAMPP in Ubuntu 24.04 using terminal?

Once downloaded, we’ll head to the terminal for installation. First, change your directory to the downloads folder. Next, let’s give the installer permission to run. Then, run the installer using this command.

Where is XAMPP installed in Ubuntu?

The main XAMPP configuration files are located as follows: Apache configuration file: /opt/lampp/etc/httpd.conf, /opt/lampp/etc/extra/httpd-xampp.conf.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 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 *