Categories
Linux Ubuntu

Install XAMPP in Ubuntu 20.04

Step 1: Download XAMPP

Download XAMPP from official website

Step 2: Run the downloaded Installer
//navigate to Downloads folder
cd /home/user/Downloads
//ls to see all the files
//make downloaded XAMPP runnable 
sudo chmos +x xampp-linux-x64-7.4.6-0-installer.run
//run the installer 
sudo ./xampp-linux-x64-7.4.6-0-installer.run

Setup wizard will open, follow the installation instruction. Click next.

Click next.

Click finish.

Setup is ready.

Step 3: Start XAMPP

Start XAMPP using command

sudo /opt/lampp/lampp start

Output:

Navigate to http://localhost, it shows XAMPP is installed properly

To stop server

sudo /opt/lampp/lampp stop

Output:

To use graphical interface for managing server

//to use graphical interface for managing server 
cd /opt/lampp
sudo ./manager-linux.run (or manager-linux-x64.run)

Place project file under htdocs folder, and to run navigate http://localhost/project-folder

Uninstall XAMPP

Uninstall XAMPP using command

//navigate of XAMPP folder
cd /opt/lampp
//run unistaller
./uninstall

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.