Bước 1: Kiểm tra version PHP
# php -v
Bước 2: Cài đặt
# rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
# rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
Bước 3:
# yum remove php-common
Bước 5:
# yum install -y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring
Bước 6: Restart PHP
# systemctl restart httpd.service
# service httpd restart
Bước 7: Kiểm tra Version xem đã Upgrade thành công chưa nhé!
# php -v