sudo yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm 
sudo yum -y install epel-release yum-utils

sudo yum-config-manager --disable remi-php54
sudo yum-config-manager --enable remi-php73

yum update

systemctl restart httpd.service

但過程中出現一些 Error msg

Error 1

Error: Delta RPMs disabled
解法:https://ishm.idv.tw/?p=521

yum provides applydeltarpm
yum -y install deltarpm

Error 2

The GPG keys listed for the “IUS Community Packages for Enterprise Linux 7 – x86_64” repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.
解法參考:https://jc-lan.org/2019/12/14/error-when-updating-centos-7-gpg-keys-are-not-correct-for-this-package/


sudo yum install \
https://repo.ius.io/ius-release-el7.rpm \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

11`

## 參考資料
1、https://computingforgeeks.com/how-to-install-php-7-3-on-centos-7-fedora/
Last modified: 2020-08-18

Author

Comments

Write a Reply or Comment

Your email address will not be published.