How to Run XAMPP on Linux Ubuntu Properly
Published on
After installing XAMPP on Linux, some users may find it challenging to reopen the application, especially when they want to open it on Ubuntu.
Unlike Windows, where you can simply click on the application icon, in Linux, you need to access XAMPP through the terminal.
If you can’t open XAMPP, it will be difficult to develop a website on localhost. So, how do you launch XAMPP on Ubuntu Linux? Let’s explore the steps!
How to Run XAMPP on Ubuntu Linux
Managing XAMPP is much easier when using the Control Panel, allowing you to activate or deactivate specific modules as needed.
That’s why understanding how to run XAMPP on Linux is crucial. Here’s a quick overview of the steps:
Step-by-Step Guide to Running XAMPP on Ubuntu:
- Open the terminal using Ctrl + Alt + T.
- Navigate to the XAMPP folder using the command:
cd /opt/lampp
. - List the directory contents using:
ls
. - Ensure that the Linux manager file is present. In this case, the file should be named: manager-linux-x64.run.
- Run the following command to make the file executable:
sudo chmod 755 manager-linux-x64.run
. - Enter your superuser password if prompted.
- Done! You should now have access to the XAMPP Control Panel.
Once XAMPP is running, you can activate the necessary modules, such as Apache or MySQL, by opening a browser and navigating to: localhost/phpmyadmin/
Now, you’re all set to start developing your website on localhost!
Successfully Running XAMPP on Linux?
That’s how you can run XAMPP on Linux after closing the Control Panel. While the process is slightly different from Windows, Linux offers better security overall.
However, XAMPP is not recommended for production servers due to its high vulnerability. This doesn’t mean XAMPP is a bad choice—it’s just that by default, XAMPP is designed for development environments, not production use.
For software deployment, it’s best to use a proper server environment that ensures security and stability. If you’re unsure which technology to use, you can do independent research or collaborate with professional software developers like Tonjoo.
Updated on February 27, 2025 by Moch. Nasikhun Amin