Ubuntu Linux

How to Install XAMPP on Ubuntu 24.04

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

This article explains how to install XAMPP on Ubuntu 24.04.

XAMPP is a free and open-source cross-platform web server solution stack package developed by Apache Friends. It consists primarily of the Apache HTTP Server, MariaDB, and interpreters for scripts written in the PHP and Perl programming languages.

XAMPP stands for X: [Cross-platform], A: [Apache], M: [MariaDB], P: [PHP] and P: [Perl].

This application allows you to create and run a PHP-based website and app from a single installation, eliminating the need to install each component separately.

Download XAMPP

XAMPP is a single Apache distribution containing MariaDB, PHP, and Perl. Just download and start the installer.

Visit the download page and choose the version with the PHP you want to install.

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

Once downloaded, run the command to make the installer executable.

🐧Bash / Shell
chmod 755 xampp-linux-*-installer.run

Install XAMPP

Now that the installer is executable, run the command below to run the installer.

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

Select the XAMPP core files and developer file to install and continue.

XAMPP components installation selection screen

Wait for the installer to complete.

XAMPP components install progress

Once complete, click the Finish button to launch the app.

XAMPP launch app

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

XAMPP App manager

Using the command line, run the command below to start and stop all servers.

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

Operation

XAMPP default directory is located at [/opt/lampp]. From there you can manage individual server and server configurations.

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

XAMPP web portal dashboard on Ubuntu 24.04

Click the PHPInfo link to display PHP info.

XAMPP web portal PHP info

Click the phpMyAdmin link to manage MariaDB.

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.

Frequently Asked Questions

How do I download XAMPP for Ubuntu 24.04?

To download XAMPP for Ubuntu 24.04, visit the XAMPP download page and choose the version with your desired PHP. You can also use the command 'wget https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/8.2.12/xampp-linux-x64-8.2.12-0-installer.run' to download it directly.

What are the steps to install XAMPP on Ubuntu?

To install XAMPP on Ubuntu, first make the installer executable using 'chmod 755 xampp-linux-*-installer.run'. Then, run the installer with 'sudo ./xampp-linux-*-installer.run' and follow the prompts to complete the installation.

How can I start and stop servers in XAMPP?

You can start and stop servers in XAMPP using the command line. Use 'sudo /opt/lampp/lampp start' to start the servers and 'sudo /opt/lampp/lampp stop' to stop them.

Where is the default directory for XAMPP located?

The default directory for XAMPP is located at '/opt/lampp'. From there, you can manage individual server configurations and access various components of your XAMPP installation.

How do I access phpMyAdmin in XAMPP?

To access phpMyAdmin in XAMPP, browse to your server's IP address or hostname in a web browser and click on the phpMyAdmin link on the default Apache web page. This will allow you to manage your MariaDB databases easily.

Was this guide 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.

2471 articles → Twitter

📚 Related Tutorials

Set Up SFTP with Chroot on Ubuntu 24.04
Ubuntu Linux Set Up SFTP with Chroot on Ubuntu 24.04
How to Setup Live Helper Chat with Nginx on Ubuntu Linux
CMS How to Setup Live Helper Chat with Nginx on Ubuntu Linux
How to Install WordPress on Google Cloud Server
CMS How to Install WordPress on Google Cloud Server
Disable Laptop Suspend When Lid Closes in Ubuntu
Ubuntu Linux Disable Laptop Suspend When Lid Closes in Ubuntu

2 responses to “How to Install XAMPP on Ubuntu 24.04”

Leave a Reply

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