close

XAMPP is a open-source and free cross-platform application developed by Apache Friends, It is a collection of packages consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters for scripts written in the PHP and Perl programming languages and serves as a local host or a local server. You can create local server environment on your PC to test and develop your web applications with it before moving to production or live server.

XAMPP is cross-platform, which means you can not only setup XAMPP on Windows but also on Ubuntu as well. In this article, we will walk you through a step-by-step method for installing XAMPP on your Ubuntu 18.04 LTS.

Step 1:  Download the installation package

Open the browser and go to official Apache Friends website: https://www.apachefriends.org/index.html

Click on the XAMPP for Linux you will be given option either to Run the package or Save it by downloading. We recommend you should download the package by clicking the Save. You can change file save location if you want it to be somewhere else otherwise it will be downloaded to default Downloads folder location ‘/home/[Username]/Downloads’

Step 2: Make XAMPP Package Executable

After XAMPP package downloaded we will install the package using Ubuntu Terminal.  Just Right click on desktop and open the Terminal from context menu or you can open it CTRL+ALT+T shortcut.

Move to the Downloads folder by using the following command:

cd /home/[username]/Downloads

In above command replace  [username]  with your own Ubuntu username. Be careful with the spell or case during typing command as in Ubuntu file and folder names are case sensitive.

The installation package you downloaded needs to be made executable. Run the following command for this purpose:

chmod 755 [package name]

Copy XAMPP package name from Downloads folder and replace  [package name]  like in above screenshot. for example:

chmod 755 xampp-linux-x64-7.2.12-0-installer.run

Your terminal would be like above image. Now the XAMMP installation package is in executable form.

Step 3: Launch the Setup Wizard

Now run the following command in order to launch the graphical XAMPP setup wizard.

sudo ./xampp-linux-x64-7.2.12-0-installer.run

To Run ‘sudo’ command you need root permission so, It will ask for root password before executing command if you are not running terminal as ‘root’ user. Once provided it will launch XAMPP setup wizard.

Now Setup wizard is there that will direct you with the rest of the installation procedure so no more terminal needed after it.

Step 4: XAMPP Setup Wizard

From XAMPP setup wizard welcome screen click on Next button

The above dialog lets you choose XAMPP components that you want to install. keep the Default and click on Next button

The above dialog will inform you about the location where XAMPP will be installed. Click Next to continue.

The above dialog gives you the option of installing sponsored applications such as Drupal, Joomla, and WordPress etc. Well we will skip it by unchecking the ‘Learn more about Bitnami for XAMPP’ checkbox. Click the Next button

So above dialogue showing that installer is ready so Click Next to begin the installation process

The above dialogue will show installation progress so wait for it to be complete it will take a minute once the installation is complete, click the Next button.

The following dialog indicates the completion of the installation process. If you want to launch XAMPP on Finish check Launch XAMPP checkbox otherwise uncheck it. Click on Finish button.

Step 5: Launch XAMPP

If you have checked launch XAMPP checkbox it will launch it once finish button clicked. XAMPP Application can be seen like this

Above dialogue is XAMPP Server Welcome tab. You can switch to Manage Server or application log as well. Manage Server Will show the status of MariaDB and Apache services. You can also stop, start or restart it from here. Application log on the other hand will show services log and helpful when anyone of services are failed to start or gives error.

Step 6: Confirm XAMMP Running

Once XAMPP installed  and Apache Service Running on your Ubuntu system its time to check our localhost working  or not. To do so, enter the following URL in your FireFox browser: http://localhost

XAMMP Dashboard Page will be shown like above image. So it means our installation process successful and now we have setup our development  environment for PHP, MariaDB , Apache Stack. You can also check phpMyAdmin to verify MariaDB service is running too.

if Page like above is being shown it means phpMyAdmin is successfully installed and running on your system. Now, XAMPP and all its components are installed on Ubuntu 18.0.4 LTS.

That’s all for this tutorial if you face any issue feel free to comment about it also If you like this tutorial, please share this with your friends.

 

Tags : Install PHP on UbuntuInstall XAMPP on UbuntuLAMPXAMPP

About Author

EDITORIAL STAFF

EDITORIAL STAFF

Read latest technology news, reviews, how-to guides and other tips & tricks covering Windows, Linux, Mac & Android operating systems prepared by our team.