CentOS 配置 Remi's Repository
参考链接:https://rpms.remirepo.net/wizard/
这里选择的操作系统和 PHP 版本是,CentOS 7 和 PHP 8.0。
答案:
CentOS 7 provides PHP version 5.4 in its official repository
Command to install the EPEL repository configuration package:
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Command to install the Remi repository configuration package:
yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
Command to install the yum-utils package (for the yum-config-manager command):
yum install yum-utils
You want multiple versions which means using a Software Collection
The php80 collection is available in the remi-safe repository
Command to install:
yum install php80
Command to install additional packages:
yum install php80-php-xxx
Command to install testing packages:
yum --enablerepo=remi-test install php80-php-xxx
Command to check the installed version and available extensions:
php80 --version
php80 --modules
When a single version is installed, command in default path (/usr/bin/php) can be installed:
yum install php80-syspaths
本文来自博客园,作者:imzhi,转载请注明原文链接:https://www.cnblogs.com/imzhi/articles/15561208.html