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 :
- Download XAMPP Package
- Run Installation Wizard
- Install XAMPP on CentOS 7
- Launch XAMPP
- Verify XAMPP
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
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.
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
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
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.
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.
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.
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.
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 installation is starting, wait until the installation process is completed done.
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.
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.
If the dashboard or phpmyadmin was not shown correctly, try to troubleshoot it first.
Have a nice day !