How To: Install phpMyAdmin on CentOS/RHEL 6.x

In this article I will guide you through the steps to install phpMyAdmin.

Some info from wikipedia:

PHPMyAdmin is a free and open source tool written in PHP intended to handle the administration of MySQL with the use of a web browser. It can perform various tasks such as creating, modifying or deleting databases,tablesfields or rows; executing SQL statements; or managing users and permissions in a GUI based environment.

System Requirements:

A CentOS/RHEL machine connected to the internet with EPEL repository installed.

To add EPEL repository to your machine:

Installation process:

Step 1 – Install the php MyAdmin package using ‘yum’

yum install -y phpMyAdmin

Step 2 – Configure remote access

by default, php MyAdmin allows you to access it from the server’s localhost only.

In order to make it accessible from remote computers as well, edit /etc/httpd/conf.d/phpMyAdmin.conf and edit the “Allow from” line to reflect your network or computer, like so:

<Directory /usr/share/phpMyAdmin/>
<IfModule mod_authz_core.c>
# Apache 2.4
Require local
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 192.168.1.0/24
Allow from ::1
</IfModule>
</Directory>

Step 3 – Restart Apache service:

service httpd restart

Step 4 – Access phpMyAdmin from a browser:

Enter your server ip/phpMyAdmin, like so:

http://www.geek-kb.com/phpMyAdmin

How To: Install phpMyAdmin on CentOS/RHEL 6.x - Geek-KB.com

Use your mysql username and password in order to log in:

How To: Install phpMyAdmin on CentOS/RHEL 6.x - Geek-KB.com

 

Comments

comments

Leave a Comment

You must be logged in to post a comment.