Linux/설치

CentOS에서 yum으로 php5.2 설치 운영

미나리나물 2012. 2. 7. 22:10

혹시 phpMyAdmin의 최신버젼을 사용하고 싶다면 php를 5.2 이상으로 맞춰줘야 한다.

하지만 기본 yum 으로는 5.1이 설치 되버리니...

아래와 같은 방법으로 설치하면 되겠다.


# wget http://dev.centos.org/centos/5/CentOS-Testing.repo
# mv CentOS-Testing.repo /etc/yum.repos.d/
# yum --enablerepo=c5-testing update php

 

 

php관련 파일 인스톨 혹은 업데이트하기
# yum --enablerepo=c5-testing install php-mysql
# yum --enablerepo=c5-testing install php-devel
# yum --enablerepo=c5-testing install php-gd
# yum --enablerepo=c5-testing install php-mbstring
# yum --enablerepo=c5-testing install php-pear
# yum --enablerepo=c5-testing install php-pecl-mailparse
# yum --enablerepo=c5-testing install mod-ssl

 
물론 설치 후엔 httpd를 재시작하는것 또한 잊지 말아야 하겠다.

# service httpd restart