SW/PHP
php 업그레이드 (Centos7)
bigju
2021. 10. 17. 09:13
CentOS 7 에서 PHP 7.2 업그레이드
1. redis가 설치되어 있는 경우 uninstall 하고 PHP 업그레이드후 다시 설치해야 한다.
pecl uninstall redis pecl uninstall igbinary
2, vi /etc/php.ini ; 아래 동적모듈 부분 주석처리
extension=igbinary.so extension=redis.so
3. remi-php72 저장소 활성화
yum-config-manager --enable remi-php72 yum update
pecl install https://pecl.php.net/get/igbinary-2.0.5.tgz
pecl install https://pecl.php.net/get/redis-3.1.4.tgz
4. php.ini 에 동적모듈 주석처리한 부분을 풀어준다.
vi /etc/php.ini
extension=igbinary.so extension=redis.so
5. 아파치 재시작
systemctl restart httpd