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 the XAMPP package (binary, with .run file extension) from its official page https://www.apachefriends.org/download.html. The file size is around 130MB for the version 5.6.30.
1. Run XAMPP Installer
Put the xampp*.run file on your $HOME directory and invoke these commands:
$ chmod +x xampp-file-name-here.run
$ sudo /xampp-file-name-here.run
2. Run The Manager
To run the GUI XAMPP manager, invoke these command lines
$ sudo -s
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
$ 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
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!