Home Tutorial Cara Install dan Konfigurasi phpMyAdmin di CentOS 7
formats

Cara Install dan Konfigurasi phpMyAdmin di CentOS 7

Published on May 6, 2017, by in Tutorial.

Tambahkan Repository EPEL

rpm -iUvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

 

Install phpMyAdmin

yum -y update

yum -y install phpmyadmin

Configuration for phpMyAdmin

nano /etc/httpd/conf.d/phpMyAdmin.conf

Buat konfigurasi seperti dibawah ini, tambahkan yang dihuruf tebal

<Directory /usr/share/phpMyAdmin/>
AddDefaultCharset UTF-8

<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
    #Require ip 127.0.0.1
    #Require ip ::1
    Require all granted
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Directory>

Restart Web Server

systemctl restart httpd

Buka http://ip-address/phpmyadmin

Demikian semoga bermanfaat.

 

Leave a Reply

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