SW/PHP

Centos7 - PhpMyAdmin 설치

bigju 2021. 10. 4. 09:00

설치 환경 : Centos7.3 VMware

기본 적으로 APM이 설치 되어있어야합니다.

 

APM- YUM 설치 하기 : https://bigju.tistory.com/10

 

APM - 소스 설치 : https://bigju.tistory.com/11

 

 


1. PHPMYADMIN 설치

yum install epel-release -y

yum install phpmyadmin -y

 

# 환경 설정

해당 부분 삭제 

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

# 웹서버 환경 설정 수정

vi /etc/httpd/conf/httpd.conf <Directory /> 

AllowOverride none Require all denied ->> Require all granted 으로 변경

</Directory>

 

# 연결 설정 확인

 

systemctl restart httpd 

systemctl restart mariadb 

http://호스트주소/phpmyadmin

접속 확인 !

 

BigJu