본문 바로가기
Linux/CentOS

CentOS 7 관리 - phpMyAdmin 설치

by 후쮸아빠 2016. 3. 18.

phpMyAdmin 설치

  1. yum으로 phpMyAdmin 설치

    
    # yum install epel-release
    # yum install phpmyadmin
  2. 외부 접속 설정 변경

    # vi /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 xxx.xxx.xxx.xxx /* 외부 접속 IP 설정 */
         </RequireAny>
       </IfModule> # systemctl restart httpd /* 아파치 재시작 */