19 April 2017

How to install XAMPP On Ubuntu


1. What is Xampp?

XAMPP is a free and open-source cross-platform web server solution stack package developed by Apache Friends, consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters for scripts written in the PHP and Perl programming languages. XAMPP stands for Cross-Platform
(X), Apache (A), MariaDB (M), PHP (P) and Perl (P).

It is a simple, lightweight Apache distribution that makes it extremely easy for developers to create a local web server for testing and deployment purposes. Everything needed to set up a web server application (Apache), database (MariaDB), and scripting language (PHP) is included in an extractable file. XAMPP is also cross-platform, which means it works equally well on Linux, Mac
and Windows. Since most actual web server deployments use the same components as XAMPP, it makes transitioning from a local test server to a live server extremely easy as well.

2. Downloading and Installing XAMPP in UBUNTU?

Step 1: Download xampp-Linux-1.8.1.tar.gz from apache friends.

Step 2: Put the file on home/user.

Step 3: Open terminal

Step 4: Give the command
sudo tar xzvf xampp-Linux-1.8.1.tar.gz -C /opt/
After all, these XAMPP will be installed on /opt/lampp Directory

3. How to start XAMPP?
Give the command
sudo /opt/lampp/lampp start
You will be getting the below-mentioned message on your terminal
Starting XAMPP for Linux 1.8.1...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.

4. Stopping XAMPP
Give command
sudo /opt/lampp/lampp stop
5. Verification of XAMPP works
For that start xampp first.
sudo /opt/lampp/lampp start
Then open a browser and just give URL, http://localhost

You will get xampp welcome screen as the figure below.

XAMPP welcome screen