我对 Linux 还很陌生。我有一个 Vultr 的 VPS,想从 Apache 迁移到 Nginx。
我正在尝试遵循本指南,但是在运行此指南时:
yum install php php-mysql php-fpm
我收到此错误:
[root@j_server ~]# yum install php php-mysql php-fpm
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.clouvider.net
* epel: mirror.netweaver.uk
* extras: mirrors.clouvider.net
* ius: lon.mirror.rackspace.com
* updates: mirror.sov.uk.goscomb.net
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.4.16-43.el7_4.1 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-43.el7_4.1 for package: php-5.4.16-43.el7_4.1.x86_64
--> Processing Dependency: php-cli(x86-64) = 5.4.16-43.el7_4.1 for package: php-5.4.16-43.el7_4.1.x86_64
---> Package php-fpm.x86_64 0:5.4.16-43.el7_4.1 will be installed
---> Package php-mysql.x86_64 0:5.4.16-43.el7_4.1 will be installed
--> Processing Dependency: php-pdo(x86-64) = 5.4.16-43.el7_4.1 for package: php-mysql-5.4.16-43.el7_4.1.x86_64
--> Running transaction check
---> Package php-cli.x86_64 0:5.4.16-43.el7_4.1 will be installed
---> Package php-common.x86_64 0:5.4.16-43.el7_4.1 will be installed
---> Package php-pdo.x86_64 0:5.4.16-43.el7_4.1 will be installed
--> Processing Conflict: mod_php70u-7.0.29-1.ius.centos7.x86_64 conflicts php < 7.0.29
--> Processing Conflict: mod_php70u-7.0.29-1.ius.centos7.x86_64 conflicts mod_php < 7.0.29
--> Processing Conflict: php70u-cli-7.0.29-1.ius.centos7.x86_64 conflicts php-cli < 7.0.29
--> Processing Conflict: php70u-common-7.0.29-1.ius.centos7.x86_64 conflicts php-common < 7.0.29
--> Processing Conflict: php70u-pdo-7.0.29-1.ius.centos7.x86_64 conflicts php-pdo < 7.0.29
--> Finished Dependency Resolution
Error: mod_php70u conflicts with php-5.4.16-43.el7_4.1.x86_64
Error: php70u-cli conflicts with php-cli-5.4.16-43.el7_4.1.x86_64
Error: php70u-common conflicts with php-common-5.4.16-43.el7_4.1.x86_64
Error: php70u-pdo conflicts with php-pdo-5.4.16-43.el7_4.1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我尝试谷歌搜索,但找不到解决方案。错误说有冲突,但当我运行:
rpm -qa | grep php
我得到的只有这些:
[root@j_server ~]# rpm -qa | grep php
php70u-common-7.0.29-1.ius.centos7.x86_64
mod_php70u-7.0.29-1.ius.centos7.x86_64
php70u-pdo-7.0.29-1.ius.centos7.x86_64
php70u-cli-7.0.29-1.ius.centos7.x86_64