In this post, we will be discussing on How to install xampp stack on ubuntu 18.04 LTS. The “XAMPP” stack is an acronym where X stands for an operating system, A stands for Apache web server, M stands for MySQL or MariaDB database server and PP stands for PHP and Perl. So, as we are installing XAMP stack in our Ubuntu 18.04 LTS Linux machine, we can call is LAMPP stack where L stands for Linux.
XAMPP stack is used together in a group in order to host dynamic PHP based websites and web applications. This setup enables us to run large numbers of web-based applications and websites as we can find large numbers of PHP based web applications on the internet. Now, I will show you on How to install xampp stack on Ubuntu.
Here are the minimum system requirements to install and run XAMPP stack in Ubuntu 18.04 LTS server.
RAM: Minimum 1GB memory
HDD: At least 1 GB free disk space
CPU: 1 Core Processor
How to Install XAMPP Stack on Ubuntu 18.04 LTS
1. Login to Ubuntu 18.04 Bionic Beaver
First of all, we’ll need to login to our Ubuntu 18.04 LTS Bionic Beaver. As we’re going to install XAMPP stack in an Ubuntu 18.04 server, we’ll need to log in through SSH which can be done using a terminal or putty if we’re using Windows as client operating system. In a Linux or Unix machine, we’ll open a terminal and then run the following command to SSH into the Ubuntu server.
$ ssh [email protected]
Here, user and 192.168.10.222 is the username and IP address of the Ubuntu 18.04 server respectively that we’re trying to access. Please replace them according to your system’s configuration.
Once we’re into the shell of the machine, we’ll switch to sudo or root mode so that we can have full access to our machine and then we can perform the further installations.
$ sudo -s
2. Upgrading the system
Then we’ll now update the local repository index which keeps track of all the packages available for Ubuntu 18.04 LTS. We’ll need to run the following command in sudo or root access.
# apt update
Once the package local repository has been updated
# apt upgrade
3. Downloading Bitnami XAMPP stack
Once our system is upgraded to the latest packages, we’ll now download the latest XAMPP stack from the official download page. Here, we’ll download the latest XAMPP stack ie version 7.2.11 which contains Apache 2.4, MariaDB 10.1, Perl 5.16, ProFTPD 1.3, PHP 7.2.11, phpMyAdmin 4.8.3 and its required modules.
Downloads can be done using any web browser and then upload it to the Ubuntu 18.04 Bionic Beaver server but here, we’ll download from the terminal using the download link we got from the download page. To download the file, we’re using wget command line file downloader.
# wget https://www.apachefriends.org/xampp-files/7.2.11/xampp-linux-x64-7.2.11-0-installer.run
After the download has completed, we’ll need to make the downloaded file executable so that we can execute it and install the binary of XAMPP stack.
# chmod +x xampp-linux-x64-7.2.11-0-installer.run
4. Installing XAMPP stack on Ubuntu
If everything above is done as expected, we’ll now be able to install it by running the executable binary installer. To run the executable .run file, we’ll need to run the following command in terminal.
If we have X11forwarding enabled in our ssh server, we’ll be welcomed with the Bitnami GUI installer but as we’ve it disabled in our server, we’ll simply proceed with the CUI installer. Here, we’re asked with few questions on how we wanna setup our stack, we’ll simply hit enter to proceed with the default options.
5. Managing the services
Now, as our stack has installed successfully, we’ll now learn how we can manage all the services of the stack.
In order to start all the xampp services, we need to run the following command in the terminal.
# /opt/lampp/xampp start
To stop all the xampp services, we need to run the following command.
# /opt/lampp/xampp stop
And in order to restart all the xampp services, we need to run the following command in our terminal.
# /opt/lampp/xampp restart
And for other commands, we can check the help section of xampp by running the following.
# /opt/lampp/xampp --help
Uninstalling XAMPP stack
If we’re done with xampp stack and wanna uninstall it, we’ll need to run the following command in sudo or root mode.
Once the above command is executed, we’ll be asked if we wanna uninstall XAMPP with all its modules where we’ll press y and hit enter to uninstall it.
Once it’s uninstalled, it will ask us to press the Enter button to return to the terminal.
XAMPP stack is an awesome stack packaged by Bitnami especially focused for the developers for easy installation and provisioning in the development servers. This article should work fine with other Ubuntu 18.04 Bionic Beaver derivatives too and even on Desktop editions. I hope you have learned how to install xampp stack on Ubuntu. So, Enjoy. If you have any questions, suggestions, feedback please don’t hesitate to write them in the comment box below because it will help us to improve or correct our contents. Thanks, Happy FOSS Computing.
Kool Arpan is a Tech Enthusiastic who loves blogging and writing articles on technology. He is a very humble in person. He loves sharing knowledge to the others by any means and medium.