[Remi 저장소 설치] - CentOS 기본 저장소는 안정적인 패키지 위주로 제공되므로, 최신 버전을 제공하는 Remi  저장소 설치

# wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

# rpm -Uvh remi-release-6*.rpm

# rpm -qa | grep remi-release

remi-release-6.5-1.el6.remi.noarch


[이미 설치된 php 버전 확인]

# yum list installed php*

php.x86_64               5.3.3-40.el6_6          @updates

php-cli.x86_64           5.3.3-40.el6_6          @updates

php-common.x86_64   5.3.3-40.el6_6           @updates


[설치된 php 삭제] - php-common을 삭제하면 의존성 있는 관련 패키지들을 함께 삭제할 수 있다.

# yum remove php-common


[php 5.5 + 필요 모듈 추가]

# yum --enablerepo=remi-php55 install php

# yum --enablerepo=remi-php55 install php-mysql

# yum --enablerepo=remi-php55 install php-mbstring

# yum --enablerepo=remi-php55 install php-xml

Posted by 얼랄라