Install XAMPP Stack On Ubuntu


        

Download the latest version from the official download page. As of writing this article, the latest version was 5.6.8.
After downloading the XAMPP package, make it executable as shown below.
sudo chmod +x xampp-linux-x64-5.6.8-0-installer.run
Now, install XAMPP stack as shown below.
sudo ./xampp-linux-x64-5.6.8-0-installer.run
You’ll be asked to answer a couple questions. Here. I will go with defaults.
Press Y to accept the defaults.
----------------------------------------------------------------------------
Welcome to the XAMPP Setup Wizard.
----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want 
to install. Click Next when you are ready to continue.
XAMPP Core Files : Y (Cannot be edited)
XAMPP Developer Files [Y/n] :y
Is the selection above correct? [Y/n]: y
----------------------------------------------------------------------------
Installation Directory
XAMPP will be installed to /opt/lampp
Press [Enter] to continue:
----------------------------------------------------------------------------
Setup is now ready to begin installing XAMPP on your computer.
Do you want to continue? [Y/n]: y
----------------------------------------------------------------------------
Please wait while Setup installs XAMPP on your computer.
 Installing
 0% ______________ 50% ______________ 100%
 #########################################
----------------------------------------------------------------------------
Setup has finished installing XAMPP on your computer.

Starting/Stopping XAMPP Server

XAMPP will be installed in /opt/lampp directory. After installing XAMPP, you can start it using the following command.
sudo /opt/lampp/lampp start
Sample output:
Starting XAMPP for Linux 5.6.8-0...
XAMPP: Starting Apache...already running.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
Like wise, you can stop the service using command:
sudo /opt/lampp/lampp stop
Sample output:
Stopping XAMPP for Linux 5.6.8-0...
XAMPP: Stopping Apache...ok.
XAMPP: Stopping MySQL...ok.
XAMPP: Stopping ProFTPD...ok.

Test XAMPP

To check if everything is OK, open up your web browser, and navigate to http://ip-address/xampp.
You may get the following error. This is because, the XAMPP test page will not be accessible from the remote clients using IP address.

Comments

Popular posts from this blog

Secure Database Connectivity in node.js with mysql

Export data from mysql db to csv file using java

API (Application Programming Interface)