Ade Malsasa Akbar contact
Senior author, Open Source enthusiast.
Tuesday, June 13, 2017 at 14:02

This short tutorial explains how to install XAMPP for GNU/Linux on Ubuntu. This includes download link, how to verify the running servers, and some command lines. This doesn't include installing web-based software such as WordPress. This tutorial is for beginner users especially those switching from Windows. Any other distro such as Mint, BlankOn, or Deepin, can follow this tutorial as well because the steps are identical. Happy learning!

Subscribe to UbuntuBuzz Telegram Channel to get article updates directly.


XAMPP for GNU/Linux is available only for 64 bit computers. You cannot install it on a 32 bit computer.

Download XAMPP

Download the XAMPP package (binary, with .run file extension) from its official page The file size is around 130MB for the version 5.6.30.

1. Run XAMPP Installer

Corrected at 1 December 2017 thanks to Milie's report.

Put the xampp*.run file on your $HOME directory and invoke these commands:

$ chmod +x

$ sudo ./

and it should run the XAMPP Bitnami Installer. Do the installation and the XAMPP will be installed at /opt/lampp.

2. Run The Manager

To run the GUI XAMPP manager, invoke these command lines

$ sudo -s
# /opt/lampp/

Then you see a window of XAMPP manager below. Then do

activate Apache
activate MySQL

3. Visit Localhost

After activating the web server (Apache), now you can type http://localhost on your browser and you should see the welcome page of XAMPP. If so, it works.

Dislike GUI Manager?

If you want the fastest way of activating XAMPP, use console commands instead of GUI manager.

Start Apache web server:
$ sudo /opt/lampp/lampp startapache

Start MySQL database server:
$ sudo /opt/lampp/lampp startmysql

Stop them:
$ sudo /opt/lampp/lampp stopapache
$ sudo /opt/lampp/lampp stopmysql

See more info:
$ /opt/lampp/lampp help


You can verify whether the Apache & MySQL are actually running or not by these commands:

$ ps aux | grep mysqld
$ ps aux | grep httpd

and you should notice the path of them is /opt/lampp/bin, the user of httpd is daemon and the user of mysqld is mysql.

Now, What?

Now as your XAMPP works, you can install some web-based software such as WordPress or OwnCloud on it, or you can start developing your own PHP or Perl programs on it. Happy learning!