How to upgrade PHP to 7.4 in centos 7?
\1. To install the latest PHP 7, you need to turn on EPEL and Remi repository.
root@gateway:~# yum install epel-release
root@gateway:~# yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
\2. Next, you need to install yum-util packages
root@gateway:~# yum install yum-utils -y
\3. Enable remi repo as per the desired PHP version, for PHP 7.4,
If you want to install PHP 7.3, you can use the following command, root@gateway: ~ # yum-config-manager --enable remi-php73
root@gateway:~# yum-config-manager --enable remi-php74
root@gateway:~# yum update
\4. Now install PHP 7.4 with all necessary modules with the command below.
root@gateway:~# yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-process php-ldap
post from: https://www.ezeelogin.com/kb/article/how-to-upgrade-php-to-7-4-on-centos-7-393.html
If you need to install specific PHP for example PHP-7.3 or PHP-7.4 you have to enable remi-php74.repo in /etc/yum.repo.d
# ls -lia /etc/yum.repos.d | grep remi
本文链接:https://www.typeecho.cn/post/38.html
版权声明:转载或引用请注明出处
点赞 2
打赏
