Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

11/1/2019 How to Install XAMPP on your Ubuntu 18.

04 LTS System

VITUX Home Linux CentOS Debian Ubuntu Shell


Linux Compendium

How to Install XAMPP on your Ubuntu 18.04 LTS System

XAMPP stands for cross-pla orm(X), Apache(A) server, Limited time


MariaDB(M), PHP(P) and Perl(P). It is built by Apache Friends and offer: Get 10 free
basically serves as a local host or a local server. Through this Adobe Stock
images.
local server, you can install this so ware on your system and test
the clients or your website before uploading it to the remote ADS VIA CARBON

web server or computer. XAMPP is most widely known by


Windows users, but there are XAMPP packages for Ubuntu
Linux as well. In this ar cle, we will describe a step-by-step
method for installing this applica on stack on your system. You
Search
can then verify the installa on by using a few URLs. You can also
Search 
go through the uninstall process that will help you in uninstalling
the so ware if the need arises.

The commands and procedures described in this ar cle have


About This Site
been run on an Ubuntu 18.04 LTS system.
Vitux.com aims to become a Linux
compendium with lots of unique
Installing XAMPP on Ubuntu 18.04 and up to date tutorials.

Please follow the following steps in order to download, install


and configure XAMPP on your system:

Step 1: Download the installa on Most Popular


package How to Write and Run a C Program
in Linux
The first step is to download the XAMPP package for Linux from posted on October 17, 2018 | under Linux,
the official Apache Friends website: Ubuntu

h ps://www.apachefriends.org/index.html
How to Install XAMPP on your
Ubuntu 18.04 LTS System

https://vitux.com/how-to-install-xampp-on-your-ubuntu-18-04-lts-system/ 1/15
11/1/2019 How to Install XAMPP on your Ubuntu 18.04 LTS System

posted on October 2, 2018 | under Linux,


Ubuntu

How to Uninstall Programs from


your Ubuntu System
posted on November 6, 2018 | under Linux,
Ubuntu

Get Linux System and Hardware


Details on the Command Line
posted on August 7, 2018 | under CentOS,
Debian, Linux, Shell, Ubuntu

How to Install and Configure


Click on the XAMPP for Linux op on a er which you will be
Apache Web Server on Ubuntu
prompted to Run the package or Save it to your system. We
posted on November 23, 2018 | under Linux,
recommend downloading the package by clicking the Save File Ubuntu
op on. A er which, your downloaded file will be saved to the
Downloads folder by default. How to Shut Down Ubuntu
posted on January 21, 2019 | under Linux,
Step 2: Make the installa on package Shell, Ubuntu

executable
How to use apt Package Manager
We will install the package through the Ubuntu command line, on Ubuntu Command Line
The Terminal. In order to open the Terminal, either use the Dash posted on October 23, 2018 | under Linux,
Ubuntu
or the Ctrl+Alt+T shortcut. A er the Terminal is open, you need
to move to your Downloads folder to access the file.
5 Ways to Check Available Memory
Move to the Downloads folder by using the following command: in Ubuntu
posted on December 6, 2018 | under Linux,
Ubuntu
$ cd /home/[username]/Downloads

How to Install VirtualBox on Ubuntu


The installa on package you downloaded needs to be made 18.04 LTS
posted on November 5, 2018 | under
executable before it can be used further. Run the following
Desktop, Linux, Shell, Ubuntu
command for this purpose:

Install NFS Server and Client on


$ chmod 755 [package name] Ubuntu 18.04 LTS
posted on November 13, 2018 | under Linux,
Ubuntu
Example:

https://vitux.com/how-to-install-xampp-on-your-ubuntu-18-04-lts-system/ 2/15
11/1/2019 How to Install XAMPP on your Ubuntu 18.04 LTS System

$ chmod 755 xampp-linux-x64-7.2.10-0-


installer.run

Now the install package is in an executable form.

Step 3: Confirm execute permission


It is important to verify if the package can be executed by the
current user. The execute permission can be checked through
the following command:

$ ls -l [package name]

Example:

$ ls -l xampp-linux-x64-7.2.10-0-installer.run

The -rwxr output shows that the file can be executed by the user
whose name is also men oned in the output.

Step 4: Launch the Setup Wizard


As a privileged root user, run the following command in order to
launch the graphical setup wizard.

$ sudo ./[package name]

Example:

sudo ./xampp-linux-7.2.10-0-installer.run

https://vitux.com/how-to-install-xampp-on-your-ubuntu-18-04-lts-system/ 3/15
11/1/2019 How to Install XAMPP on your Ubuntu 18.04 LTS System

This will launch the Setup wizard that will direct you with the
rest of the installa on procedure.

Step 5: Work through the graphical


setup wizard
Now that the Setup Wizard for XAMPP by Bitnami is launched
as follows, click the Next bu on to start the installa on process:

The following dialog lets you choose XAMPP components that


you want to install.
https://vitux.com/how-to-install-xampp-on-your-ubuntu-18-04-lts-system/ 4/15
11/1/2019 How to Install XAMPP on your Ubuntu 18.04 LTS System

Keep the default se ngs intact and then click Next. The
following dialog will inform you about the loca on where
XAMPP will be installed.

Click Next to con nue. The following dialog gives you the op on
of installing sponsored applica ons such as Drupal, Joomla, and
WordPress etc. You can avoid Bitnami to install these

https://vitux.com/how-to-install-xampp-on-your-ubuntu-18-04-lts-system/ 5/15
11/1/2019 How to Install XAMPP on your Ubuntu 18.04 LTS System

applica ons by unchecking the ‘Learn more about Bitnami for


XAMPP’ checkbox.

Click the Next bu on a er which the following dialog will


appear:

Click Next to begin the installa on process:

https://vitux.com/how-to-install-xampp-on-your-ubuntu-18-04-lts-system/ 6/15
11/1/2019 How to Install XAMPP on your Ubuntu 18.04 LTS System

When the installa on is complete, click the Next bu on. The


following dialog indicates the comple on of the installa on
process.

If you do not want to Launch XAMPP at this moment, uncheck


the Launch XAMPP op on. Also, click Finish to close the Setup
dialog.
https://vitux.com/how-to-install-xampp-on-your-ubuntu-18-04-lts-system/ 7/15
11/1/2019 How to Install XAMPP on your Ubuntu 18.04 LTS System

Step 6: Launch XAMPP through the


Terminal
In order to launch XAMPP through your Ubuntu Terminal, enter
the following command as root:

$ sudo /opt/lampp/lampp start

This output shows that XAMPP is started and already running.


Please note that you need to manually start XAMPP each me
you restart your system.

If you get the following output a er star ng XAMPP, it means


that Net Tools are not installed on your system:

https://vitux.com/how-to-install-xampp-on-your-ubuntu-18-04-lts-system/ 8/15
11/1/2019 How to Install XAMPP on your Ubuntu 18.04 LTS System

In order to install Net Tools, run the following command as root:

$ sudo apt install net-tools

https://vitux.com/how-to-install-xampp-on-your-ubuntu-18-04-lts-system/ 9/15
11/1/2019 How to Install XAMPP on your Ubuntu 18.04 LTS System

A er the installa on of Net Tools, you will be successfully able


to launch and use XAMPP.

Step 7: Verify Installa on


A er you have installed XAMPP on your Ubuntu system, it is
good prac ce to verify the installa on. To do so, enter the
following URL in your FireFox browser:

http://localhost

The following webpage verifies that XAMPP is successfully


installed and running on your system:

https://vitux.com/how-to-install-xampp-on-your-ubuntu-18-04-lts-system/ 10/15
11/1/2019 How to Install XAMPP on your Ubuntu 18.04 LTS System

You can also verify the installa on of phpMyAdmin in a similar


manner by entering the following URL in your browser:

http://localhost/phpmyadmin

The following webpage verifies that phpMyAdmin is successfully


installed and running on your system:

https://vitux.com/how-to-install-xampp-on-your-ubuntu-18-04-lts-system/ 11/15
11/1/2019 How to Install XAMPP on your Ubuntu 18.04 LTS System

Uninstall XAMPP
It is also important to learn how to completely uninstall and
remove XAMPP from your Ubuntu system if you ever need to do
so.

Open your Ubuntu Terminal and move to the directory where


XAMPP is installed. That is:

$ cd /opt/lampp

The next step is to run the uninstall program you will find in the
lampp folder through the following command:

$ sudo ./uninstall

The following dialog will appear asking you if you want to


uninstall XAMPP and all of its modules:

https://vitux.com/how-to-install-xampp-on-your-ubuntu-18-04-lts-system/ 12/15
11/1/2019 How to Install XAMPP on your Ubuntu 18.04 LTS System

Click Yes to proceed with the uninstall process.

https://vitux.com/how-to-install-xampp-on-your-ubuntu-18-04-lts-system/ 13/15
11/1/2019 How to Install XAMPP on your Ubuntu 18.04 LTS System

You will get the following message a er successful uninstalla on


of XAMPP.

Click OK.

Another important step is to manually remove the lampp folder


along with all its files and sub-folders. The following command
will help you in doing so:

$ sudo rm -r /opt/lampp

Now, XAMPP and all its modules are out of your system. You can
also delete the downloaded install package if you want.

https://vitux.com/how-to-install-xampp-on-your-ubuntu-18-04-lts-system/ 14/15
11/1/2019 How to Install XAMPP on your Ubuntu 18.04 LTS System

In this tutorial, you have learned a step-by-step installa on


process for XAMPP on your Ubuntu System. From downloading
the install package, running it, and then verifying the installa on,
you have walked through the en re procedure with us. We have
also provided enough informa on about uninstalling XAMPP if
you ever need to do that.

Karim Buzdar October 2, 2018 Linux, Ubuntu

← How to Format a USB drive in Ubuntu

How to Customize Themes on Ubuntu Desktop with Gnome


Tweaks →

Copyright © vitux.com Privacy Policy Imprint

https://vitux.com/how-to-install-xampp-on-your-ubuntu-18-04-lts-system/ 15/15

You might also like