Linux Administrator

How To Install XAMPP On CentOS/RHEL 7.0

XAMPP Stands For:

X – Cross Platform ( Windows, Linux, Mac, OSX, and Solaris )
A – Apache
P – Perl

Recommended Post

What is XAMPP?

XAMPP is an open source free software developed by Apache friends. XAMPP software package contains Apache distributions for Apache server, MariaDB, PHP, and Perl. And it is basically a local host or a local server. This local server works on your own desktop or laptop computer. You can just install this software on your laptop or desktop and test the clients or your website before uploading it to the remote web server or computer. This XAMPP server software gives you suitable environment for testing MYSQL, PHP, Apache and Perl projects on the local computer.

The full form of XAMPP is X stands for Cross-platform, (A)Apache server, (M)MariaDB, (P)PHP and (P)Perl. The Cross-platform usually means that it can run on any computer with any operating system.

Next MariaDB is the most famous database server and it is developed by MYSQL team. PHP usually provides a space for web development. PHP is a server-side scripting language. And the last Perl is a programming language and is used to develop a web application.

The XAMPP installation process is very simple and fast. Once XAMPP is installed on your local computer it acts as a local server or localhost. You can test the websites before uploading it to the remote web server. This XAMPP server software gives you suitable environment for testing MYSQL, PHP, Apache and Perl applications on a local computer.

In this article I will describe about and xampp and how to install xampp on CentOS and RHEL.

What are the Main Tools of XAMPP and its definition?

XAMPP contains tools such as Apache, MYSQL, PHP, and Perl. We will see about these tools.


Apache server is an open source free software which is initially developed by a group of software developers and now it is maintained by Apache software foundation. Apache HTTP is a remote server(computer) if someone request files, images or documents using their browser they will serve those files to clients using HTTP servers. Mainly hosting companies use this application to create a VPS server and shared hosting for their clients.


MYSQL is an open source software. It is actually a relational database management system(RDBMS). This SQL stands for Structured Query Language. It is the most popular and best RDBMS used for developing a variety of web-based software applications. With the help of MYSQL, it is possible to organize the information, manage, retrieve and update the data whenever you wish to do.


The full form of PHP is Hypertext Preprocessor. It is a server-side scripting language that helps you to create dynamic websites. This language is mainly used to build web-based software applications. It is an open source software and works fine with MYSQL. What actually happens is, the PHP code will be executed on the server and at the browser side its HTML code will be displayed.


Perl is usually said to be general purpose programming language. This Perl language is interpreted and highly dynamic. Actually, this language is used for web development, GUI development, system administration etc. Perl is capable of working with HTML, XML and other markup languages.

Install XAMPP On CentOS/RHEL

Follow the below steps to install XAMPP on CentOS/RHEL.

Download XAMPP

First of all you have to download latest stable XAMPP version for Linux.

# yum install wget
# wget

Set Executable Permission on XAMPP Script

Now set the executable permission on XAMPP script.

# chmod +x

Run XAMPP Installer Script

After setting executable permission run the XAMPP installer script. Now it will ask questions you have to give answer as per your requirement.

# ./

Welcome to the XAMPP Setup Wizard.

Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.

XAMPP Core Files : Y (Cannot be edited)

XAMPP Developer Files [Y/n] :y

Is the selection above correct? [Y/n]: y

Installation Directory

XAMPP will be installed to /opt/lampp
Press [Enter] to continue :

Setup is now ready to begin installing XAMPP on your computer.

Do you want to continue? [Y/n]: y

Please wait while Setup installs XAMPP on your computer.

0% ______________ 50% ______________ 100%

Setup has finished installing XAMPP on your computer.

Allow Everyone To Access XAMPP Server

Open the /opt/lamp/etc/extra/httpd-xampp.conf file and add a line ” Require all granted” and comment
ount the “Require local“.

For Example:

# vim /opt/lampp/etc/extra/httpd-xampp.conf

<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
# Require local
Require all granted
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

Restart Services Using LAMP Script

Type the below command to restart the all services:

# /opt/lampp/lampp restart

You will get some output like below:

Restarting XAMPP for Linux 1.8.3-3...
XAMPP: Stopping Apache...ok.
XAMPP: Stopping MySQL...ok.
XAMPP: Stopping ProFTPD...not running.
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.

Access XAMPP Using Browser

Now open your web browser the url to get the XAMPP Dashboard:



Access PhpMyadmin

If you want to access phpmyadmin page just type the url of with /phpmyadmin in address bar.




How to Use XAMPP for Development Process?

Once XAMPP installation is completed you can start and stop each module by using XAMPP Control Panel. For example, testing PHP applications on your computer, you can start the two modules Apache and MySQL. It will allow PHP programs run on your computer. This XAMPP software emulates remote server like an environment on your local computer.

As an app developer, you need to test applications as many times as possible to find and fix the bugs. If you are testing in the local environment like XAMPP, it will speed up your development process.

Before XAMPP every time you need to upload files to a remote server for testing purpose. It will be quite difficult to test on the live server and it is visible to your visitors. But whereas in XAMPP you can easily test and make any updates in your localhost. At any number of times, you can update and test in XAMPP. Once completed you can upload this new updated files to the remote server.

Thank you! for visiting LookLinux.

If you find this tutorial helpful please share with your friends to keep it alive. For more helpful topic browse my website To become an author at Look Linux Submit Article. Stay connected to Facebook.

About the author


Santosh Prasad

Hi! I'm Santosh and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

Leave a Comment