php55w-添加php-fpm时常见的冲突

时间:2014-09-15 21:39:16

标签: nginx php

所以我试图添加php-fpm以使其与nginx一起使用。但我遇到的问题是我已经有一些其他PHP的东西像php-common,现在它有冲突。所以centOS建议我使用--skip-broken,但我不确定这是否是最好的方法?如果我最终使用它来安装php-fpm会不会有任何问题?

Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: dallas.tx.mirror.xygenhosting.com
 * epel: www.gtlib.gatech.edu
 * extras: mirror.millry.co
 * updates: mirror.cs.vt.edu
 * webtatic: us-east.repo.webtatic.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-fpm.x86_64 0:5.3.3-27.el6_5.1 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-27.el6_5.1 for package: php-fpm-5.3.3-27.el6_5.1.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.3.3-27.el6_5.1 will be installed
--> Processing Conflict: php55w-common-5.5.16-1.w6.x86_64 conflicts php-common < 5.5.0
--> Finished Dependency Resolution
Error: php55w-common conflicts with php-common-5.3.3-27.el6_5.1.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

1 个答案:

答案 0 :(得分:0)

如果您知道自己在做什么,可以通过以下方式升级PHP:

yum install yum-plugin-replace
yum replace php-common --replace-with=php55w-common

它可能会给您一条消息“警告:无法解析所有提供商......”。这是正常的,你可以继续打“y”。在再次有机会确认之前,您将有机会查看将安装和删除的软件包。

然后您可以继续使用以前的安装命令