Linux WEB

CentOS 6.3 에 apache, php, mysql, phpmyadmin(LAMP) 설치하기 #2


http://faq.hostway.co.kr/xe/?mid=lnx_web&document_srl=3519 를 통해서 CentOS 6.3 에 APM 설치가 완료된 상태라면, 아래와 같이 phpMyAdmin 을 설치한다.


1. phpMyAdmin 설치

# rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

# yum -y install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm


만약, 32bit CentOS 가 구동중이라면 아래와 같이 32bit 용으로 설치한다.

# yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm


# yum -y install phpmyadmin


2. phpMyAdmin apache alias 적용

# vi /etc/httpd/conf.d/phpmyadmin.conf

Alias /phpmyadmin /usr/share/phpmyadmin

Alias /phpMyAdmin /usr/share/phpmyadmin

Alias /mysqladmin /usr/share/phpmyadmin


3. phpMyAdmin 인증 변경(cookie 를 http 로 변경)

# vi /usr/share/phpmyadmin/config.inc.php

[중략]

/* Authentication type */

$cfg['Servers'][$i]['auth_type'] = 'http';

[중략]


4. 설치 확인

# /etc/init.d/httpd restart 후 PC 의 웹 브라우저를 통해서 아래 주소에 연결한다.

http://서버아이피/phpmyadmin/