January 26, 2022
How to install XAMPP on CentOS 7

How To Install XAMPP On CentOS 7 Explained in Detail

XAMPP Introduction

If we want to develop a web-based application, then we need an environment that matches with the conditions where the application will run later. XAMPP commonly used by developers in building their applications before live in production. They can build software, do testing and after they finish transferring it to the production environment. XAMPP is a free and open-source cross-platform web server solution stack package developed by Apache Friends, consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters for scripts written in the PHP and Perl programming languages. At this article we will discuss how to install XAMPP on CentOS 7.

XAMPP was first developed by a project team called Apache Friends. As an open-source Apache distribution of a PHP development environment, it consists of cross-platform software (X): Apache (A), MariaDB (M), PHP (P) and Perl (P). The stable version of XAMPP at the time of linking this article is version 7.3.11 released on October 30, 2019.

In this article, we will discuss how to install XAMPP on CentOS 7, starting from the prerequisite up to veriftying XAMPP after installation.

XAMPP Installation Steps

The article will be divided up to 6 subsection, as described below :

  1. Prerequisite
  2. Download XAMPP Package
  3. Run Installation Wizard
  4. Install XAMPP on CentOS 7
  5. Launch XAMPP
  6. Verify XAMPP

1. Prerequisite

Because the XAMPP will be installed on OS CentOS 7, so we must have a CentOS 7 system, with sudo privilege user. And also the CentOS repository update. To verify, this we have to run the command as below :

[ramans@localhost ~]$ sudo yum update

2. Download XAMPP Package

The next step is downloading the last version of XAMPP located on Apache friends official website. You chose the XAMPP for Linux 7.3.11, the last version when this article is written is version 7.3.11.

Download XAMPP version 7.3.11 form apachefiends.org

The download dialog box will be appearing, select ‘Save File’ and wait until the download process is completed done. The defautl directory will be located on /home/<username>/Downloads. At this article the file is located on /home/ramans/Downloads. The file name is xampp-linux-x64-7.3.11-0-installer.run.

Download XAMPP version 7.3.11 form apachefiends.org

The next step is to add the execution mode for the file, it is intended so that the file can be run. The command will be :

[ramans@localhost Downloads]$ chmod +x xampp-linux-x64-7.3.11-0-installer.run

3. Run Installation Wizard

Currently, the installer file has been ready to be run. We only need to run via command line as below :

ramans@ubuntu:~/Downloads$ sudo ./xampp-linux-x64-7.3.11-0-installer.run 

The command line request password, than supply the right password for continuing this step. After this step, we will be prompted with dialog box as below.

XAMPP installation dialog box appear.
The XAMPP installation wizard will be displayed

4. Install XAMPP on CentOS 7

The XAMPP installation process will run in several steps through a dialog box that will appear sequentially. After the XAMPP welcome screen opens, follow the dialog steps as described briefly here.

Select Components. At this step we will be asked to select which component that we want to install, there are two options : XAMPP Core Files and XAMP Developer Files. Check list all options and then clikc ‘Next‘ button located on the below dialog box.

Select Components of XAMPP that will be installed on system.

Installation Directory. The wizard will display where the location of installation directory will be located, the default location is /opt/ampp. Then we will continue by clicking ‘Next‘ button.

Directory where the XAMPP will be installed.

Bitnami for XAMPP. The offer from Bitnami to install Drupal, Joomla, WordPress and others. The option is depend on us, whether we will take it or not. Continuing this step by clickning ‘Next‘ button.

Sponsorship offering to install other software : Drupal, WordPress and Joomla.

Ready to Install. The setup wizard will inform us, if the installation is ready to begin installing XAMPP on our system. Continuing this step by clicking ‘Next‘ button.

The XAMPP is ready to install

The XAMPP installation is starting, wait until the installation process is completed done.

The XAMPP installation process is runnng
The XAMPP installation was completed done.

5. Launch XAMPP

After installation process was completed, the XAMPP will launch its control panel. Using this panel to manage the application and log will be visible to user.

From the control panel we also could monitor the status of services which is running on the system.

6. Verify XAMPP Installation

Before we are using XAMPP to be our development environment, we should verify it first to ensure if our XAMPP installation was completed successfully done. At least two things we can do to verify our XAMPP installation, namely : checking the dashboard and mariaDB services.

XAMPP dashboard is running properly.
phpmyadimin is running properly.

If the dashboard or phpmyadmin was not shown correctly, try to troubleshoot it first.

Have a nice day !

Share this article via :

Leave a Reply

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