upgrade PHP from 5 4 to 7 3 on centOS7
In this tutorial I would like to show you – HOW TO UPGRADE PHP 5.4 TO 7.3 ON CENTOS7 (also work.. from any version to 7.3 in CENTOS7)
===Step by step command to do the job successful ===
php -v
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://rpms.remirepo.net/enterprise/remi-release-7.rpm
vim /etc/yum.repos.d/remi.repo
———
[remi]
name=Remi’s RPM repository for Enterprise Linux 7 – $basearch
#baseurl=http://rpms.remirepo.net/enterprise/7/remi/$basearch/
#mirrorlist=https://rpms.remirepo.net/enterprise/7/remi/httpsmirror
mirrorlist=http://cdn.remirepo.net/enterprise/7/remi/mirror
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
——–
vim /etc/yum.repos.d/remi-php73.repo
——–
[remi-php73]
name=Remi’s PHP 7.3 RPM repository for Enterprise Linux 7 – $basearch
#baseurl=http://rpms.remirepo.net/enterprise/7/php73/$basearch/
mirrorlist=https://rpms.remirepo.net/enterprise/7/php73/httpsmirror
mirrorlist=http://cdn.remirepo.net/enterprise/7/php73/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
——–
yum -y upgrade php*
php -v
sudo systemctl restart httpd
THANKS FOR WATCHING…
centos 7