Wednesday, June 8, 2022

Upgrade php 7 to 8 (7.4 to 8.0)

 For Redhat(RHEL 7)  or centos 7


sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

 1001  sudo yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm

 1002  sudo yum -y install yum-utils

 1003  sudo yum-config-manager --disable 'remi-php*'


 1005  sudo dnf install php php-cli php-common

 1006  sudo yum-config-manager --disable remi-php54

 1007  sudo yum-config-manager --disable remi-php74

 1008  sudo yum-config-manager --enable remi-php80

 1009  sudo yum update

 1010  php -v


* Want to disable last remi and enable new remi

No comments: