大网数据广告活动
服务器运维问答

Centos 7.7 remove dupplicate php 7.2 version

· 52CE 我爱测

I'm working with centos 7.7 and the client has provided me with a vm where they unawarely installed the same version of PHP, which is 7.2, two times in two different ways, one of which is by remi's repository, the other I'm not s…

问题原文

原帖链接 · Sukhdev Mohan · CC BY-SA 4.0

I'm working with centos 7.7 and the client has provided me with a vm where they unawarely installed the same version of PHP, which is 7.2, two times in two different ways, one of which is by remi's repository, the other I'm not sure about probably yum install php72-php.

I've configured remi's php with fpm and nginx, I'd like to remove the other one as the app I'm using recalls some php script and somehow use the other php which is missing modules and also adds entropy. Is it possible? If not Is it possible to make remi's php 7.2 the default one?

Any help is useful.

已采纳解答

原帖链接 · Remi Collet · CC BY-SA 4.0

I recommend you to read the repository FAQ about differences between php-* and php72-php-* packages

If you need a single version, you only need "php-" packages, so you can remove the "php72-php-" packages

yum remove php72-\*

Proper installation is explained by the wizard

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-09-14)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。