To upgrade from previous version of php to new version
sudo yum install epel-release yum-utils
sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install yum-utils
yum-config-manager –enable remi-php73
yum update -y
php -v
If php upgrade process fails and it continues to be on old versions:
yum-config-manager –disable remi-php56
yum-config-manager –disable remi-php70
yum-config-manager –disable remi-php71
yum-config-manager –disable remi-php72
yum update -y
php -v