안녕하세요? WEBPD.NET 서버운영팀입니다.
1. 현재 설치되어 있는 php 패키지를 확인합니다.
yum list installed | grep php
출력내용
php-pdo-5.4.16-45.el7.x86_64
php-5.4.16-45.el7.x86_64
php-mysql-5.4.16-45.el7.x86_64
php-cli-5.4.16-45.el7.x86_64
php-gd-5.4.16-45.el7.x86_64
php-mbstring-5.4.16-45.el7.x86_64
php-pdo-5.4.16-45.el7.x86_64
php-common-5.4.16-45.el7.x86_64
위 패키지를 삭제합니다.
rpm -e php-pdo-5.4.16-45.el7.x86_64
rpm -e php-5.4.16-45.el7.x86_64
rpm -e php-mysql-5.4.16-45.el7.x86_64
rpm -e php-cli-5.4.16-45.el7.x86_64
rpm -e php-gd-5.4.16-45.el7.x86_64
rpm -e php-mbstring-5.4.16-45.el7.x86_64
rpm -e php-pdo-5.4.16-45.el7.x86_64
rpm -e php-common-5.4.16-45.el7.x86_64
php 5.6 을 설치하기 위해 remi repository에서 설치를 합니다..
먼저 epel과 remi repository 설치진행합니다.
# yum install epel-release
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
설치되어 있는 php 를 삭제합니다.
# yum remove php*
php56 에 존재하는 모듈 전체 설치
# yum install -y --enablerepo=remi,remi-php56 php php-bcmath php-cli php-common php-dba php-dbg php-devel php-embedded php-enchant php-fpm php-gd php-gmp php-imap php-interbase php-intl php-ldap php-litespeed php-mbstring php-mcrypt php-mysqlnd php-odbc php-opcache php-pdo php-pgsql php-process php-pspell php-recode php-snmp php-soap php-tidy php-xml php-xmlrpc
