리눅스 [CentOS 6] PHP70설치
//yum업데이트
yum update
//epel
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
//remi
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
//기존패키지삭제
yum remove php*
//PHP70 주요패키지설치
yum --enablerepo=remi install php70 php70-php php70-php-cli php70-php-common php70-php-gd php70-php-json php70-php-mbstring php70-php-mcrypt php70-php-mysqlnd php70-php-opcache php70-php-pear php70-php-xml php70-php-devel php70-php-imagick
//php버전을 확인해보고 실행파일이 php70으로 설치가 되서 심볼릭링크를 걸어줍니다.
scl enable php70 'php -v'
ln -s /usr/bin/php70 /usr/bin/php
참고로 php.ini의 위치 변경 변경되었습니다.
/etc/php.ini -> /etc/opt/remi/php70/php.ini
opcache 활성화
만약 opcache가 활성화 되지 않으면 /etc/opt/remi/php70/php.d/10-opcache.ini에 아래 내용을 확인하고 주석제거 후 아파치 재시작 해줍니다.
zend_extension=opcache.so opcache.enable=1 opcache.enable_cli=1이를 끝으로 서버설정이 완료되었습니다.
