PHP 通过 Remi 源安装 PHP73

Remi 源有更多的即装即用的 PECL 扩展。

添加源:

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm

启用:

yum install yum-utils
yum-config-manager --enable remi-php73

Remi 源不像 IUS 源,它是覆盖掉系统的 PHP 源的,安装 PHP73:

sudo yum install php php-curl php-bcmath php-pecl-swoole4 php-pear

如果安装带有前缀的如:php73-php-pecl-swoole4 ,扩展将不会生效,不知为啥!