You cannot see this page without javascript.

2017.01.05 10:19

phpmyadmin 설치 - yum

조회 수 561 추천 수 0 댓글 0

phpmyadmin 설치

명령어

 
 yum install epel-release
 yum install phpmyadmin
 yum update
 

기본 설치 경로

/usr/share/phpMyAdmin

http://호스트주소/phpmyadmin

 

phpmyadmin 설정

 

 
 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
     </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>

 

<변경후>

<Directory /usr/share/phpMyAdmin/>

   AddDefaultCharset UTF-8

   Order Allow,Deny

   Allow from All

</Directory>

 

httpd.conf 수정

명령어

 
 vi /etc/httpd/conf/httpd.conf
 

Require all denied 줄을 Require all granted로 변경해주자.

 

<변경전>
<Directory />

    AllowOverride none

    Require all denied 

</Directory>

 

<변경후>
<Directory />

    AllowOverride none

    Require all granted 

</Directory>

Who's DragonHaptic

profile