How to install XAMPP in Ubuntu Linux

This tutorial explains how to install the latest version of XAMPP in Ubuntu Linux step by step with practical examples. XAMPP stands for X (Cross platform), M (MySQL), P (PHP) and P (PERL). XAMPP allows us to run local web server for testing and development purpose. Learn how to install and run XAMPP in Ubuntu Linux.

Download the latest version of XAMPP from its official website.

https://www.apachefriends.org/index.html

Open the folder which contains downloaded XAMPP installer file.

download xampp

Right click in empty space and click Open in Terminal option

open in terminal

Run following commands

$ls
$chmod 755 xampp-linux-[version_number]-installer.run
$ls -l

First command verifies that XAMPP installer file exists in current folder.

By default, XAMPP installer file is not executable. Before we install XAMPP from this file, we have to make it executable. Second command makes it executable. While executing this command, replace text [version_number] with the version number of XAMPP.

The chmod command is used to manage the security attributes in Linux. To learn how to manage file system security with chmod command in Linux see this tutorial

How to use chmod command in Linux Explained with Examples

This tutorial explains basic concepts of Linux file system security and how to manage it with chmod command in detail with practical examples.

Third command confirms that installer file is now executable under the owner account.

Following figure shows above commands

chmod xampp

Run following command to execute the installer file

sudo ./xampp-linux-[version_number]-installer.run

Authenticate access with sudo password.

sudo run exapp isntaller file

Upon successful authentication, installer script starts installation process in graphical wizard.

Click Next on Welcome screen.

xampp installation wizard

XAMPP offers additional components with regular installation. Unless you have very low disk space, there is no need to exclude these additional components from installation.

Keep default selection and click Next button

xampp installation component

In next screen, wizard displays the location where it will install the XAMPP. Click Next button to continue the installation.

start xampp installation

In next screen, wizard asks “do we want to learn and use Bitnami with XAMPP”. Bitnami is the sponsored application which can install open source CMS software (such as WordPress, Joomla, Drupal,etc.) in XAMPP.

This add-on feature is optional. If require, all these CMS applications can be installed manually. There is no need to install this feature with standard XAMPP installation. Remove the selection and click Next button.

remove bitnami feature

That’s all information wizard needs before starting the installation. Click Next button to start the installation

xampp start installation confirmation

Installation process may take several seconds (even few minutes).

installation processing running

Once installation process is finished, wizard will display the confirmation message.

On last screen, wizard has an option to launch XAMPP just after closing the wizard. By default this option is selected. You can keep this option selected or can remove it. Since we will learn how to start XAMPP manually in next step, remove this option and click Finish.

installation finish

Once XAMPP is installed successfully, it can be started with following command

$sudo /opt/lamp/lamp start

start xampp

You have to start XAMPP each time when system starts. If you occasionally use XAMPP, you can consider starting XAMPP manually. But if you regularly use XAMPP, check this tutorial.

How to start XAMPP automatically in Ubuntu

It explains how to create a script which starts XAMPP automatically when system starts.

Verifying XAMPP installation

To verify the XAMPP installation, open Firefox and access following URL

http://localhost

If XAMPP is successfully installed, we will see following webpage

testing xampp installation

Same way we can also verify the installation of phpMyAdmin by accessing following URL

http://localhost/phpmyadmin

phpmyadmin installation testing

That’s all for this tutorial. If you like this tutorial, please share this with your friends.

ComputerNetworkingNotes Ubuntu Linux Tutorials How to install XAMPP in Ubuntu Linux