Skip to content

phpMyAdmin

설치

sudo yum install phpmyadmin (epel-release repo 추가되어있어야 함)

설정

  • /etc/httpd/conf.d/phpMyAdmin.conf 수정
<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 ip << 이 곳에 IP 추가 >>
        </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
        Allow from << 이 곳에 IP 추가 >>
    </IfModule>
</Directory>