Centos 6.7 PHP从PHP 5.2升级到5.6

Centos 6.7 PHP从PHP 5.2升级到5.6,php,Php,在Centos 6.7上将PHP从PHP5.2更新为5.6会导致以下错误。有什么帮助吗 [root@web2 yum.repos.d]# yum upgrade php* Loaded plugins: fastestmirror Setting up Upgrade Process Loading mirror speeds from cached hostfile * base: centos.mirror.moack.net * extras: centos.mirror.mo

在Centos 6.7上将PHP从PHP5.2更新为5.6会导致以下错误。有什么帮助吗

[root@web2 yum.repos.d]# yum upgrade php*

Loaded plugins: fastestmirror

Setting up Upgrade Process

Loading mirror speeds from cached hostfile

 * base: centos.mirror.moack.net
 * extras: centos.mirror.moack.net
 * remi: mirror.innosol.asia
 * remi-php56: mirror.innosol.asia
 * updates: centos.mirror.moack.net

Resolving Dependencies

--> Running transaction check

---> Package php.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php.x86_64 0:5.6.40-9.el6.remi will be an update

---> Package php-cli.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php-cli.x86_64 0:5.6.40-9.el6.remi will be an update

---> Package php-common.x86_64 0:5.2.17-r4686.mchost will be updated

--> Processing Dependency: php-pecl-zip(x86-64) for package: php-
common-5.6.40-9.el6.remi.x86_64

---> Package php-common.x86_64 0:5.6.40-9.el6.remi will be an update

--> Processing Dependency: php-pecl-jsonc(x86-64) for package: php-common-5.6.40-9.el6.remi.x86_64

--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.6.40-9.el6.remi.x86_64

---> Package php-gd.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php-gd.x86_64 0:5.6.40-9.el6.remi will be an update

--> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php-gd-5.6.40-9.el6.remi.x86_64

--> Processing Dependency: libgd.so.3()(64bit) for package: php-gd-5.6.40-9.el6.remi.x86_64

---> Package php-imap.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php-imap.x86_64 0:5.6.40-9.el6.remi will be an update
---> Package php-mbstring.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php-mbstring.x86_64 0:5.6.40-9.el6.remi will be an update

---> Package php-mcrypt.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php-mcrypt.x86_64 0:5.6.40-9.el6.remi will be an update

---> Package php-mssql.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php-mssql.x86_64 0:5.6.40-9.el6.remi will be an update

---> Package php-mysql.x86_64 0:5.2.17-r4686.mchost will be obsoleted

---> Package php-mysqlnd.x86_64 0:5.6.40-9.el6.remi will be obsoleting

---> Package php-pdo.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php-pdo.x86_64 0:5.6.40-9.el6.remi will be an update

---> Package php-soap.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php-soap.x86_64 0:5.6.40-9.el6.remi will be an update

---> Package php-tidy.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php-tidy.x86_64 0:5.6.40-9.el6.remi will be an update

---> Package php-xml.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php-xml.x86_64 0:5.6.40-9.el6.remi will be an update

--> Running transaction check

---> Package gd-last.x86_64 0:2.2.5-5.el6.remi will be installed

--> Processing Dependency: libfontconfig.so.1()(64bit) for package: gd-last-2.2.5-5.el6.remi.x86_64

--> Processing Dependency: libtiff.so.3()(64bit) for package: gd-last-2.2.5-5.el6.remi.x86_64

--> Processing Dependency: libwebp.so.5()(64bit) for package: gd-last-2.2.5-5.el6.remi.x86_64

---> Package php-common.x86_64 0:5.2.17-r4686.mchost will be updated

--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.6.40-9.el6.remi.x86_64

---> Package php-common.x86_64 0:5.6.40-9.el6.remi will be an update

--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.6.40-9.el6.remi.x86_64

---> Package php-pecl-jsonc.x86_64 0:1.3.10-2.el6.remi.5.6 will be installed

--> Running transaction check

---> Package fontconfig.x86_64 0:2.8.0-5.el6 will be installed

---> Package gd-last.x86_64 0:2.2.5-5.el6.remi will be installed

--> Processing Dependency: libwebp.so.5()(64bit) for package: gd-last-2.2.5-5.el6.remi.x86_64

---> Package libtiff.x86_64 0:3.9.4-21.el6_8 will be installed

---> Package php-common.x86_64 0:5.2.17-r4686.mchost will be updated

--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.6.40-9.el6.remi.x86_64

---> Package php-common.x86_64 0:5.6.40-9.el6.remi will be an update

--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.6.40-9.el6.remi.x86_64

--> Finished Dependency Resolution

Error: Package: php-common-5.6.40-9.el6.remi.x86_64 (remi-php56)

           Requires: php-pecl-zip(x86-64)

           Removing: php-common-5.2.17-r4686.mchost.x86_64 (installed)

               php-pecl-zip(x86-64) = 1.8.11

           Updated By: php-common-5.6.40-9.el6.remi.x86_64 (remi-php56)

               Not found

Error: Package: gd-last-2.2.5-5.el6.remi.x86_64 (remi)

           Requires: libwebp.so.5()(64bit)

 You could try using --skip-broken to work around the problem

 You could try running: rpm -Va --nofiles --nodigest

1/首先从mchost存储库中删除所有内容

2/请注意,PHP 5.6在2018年12月已达到其标准,尽管remi存储库中的软件包有安全补丁,但强烈建议升级到维护版本

3/首先更新您的发行版,因为6.7非常旧,当前版本是6.10。您还可以考虑CITOS 7.6上的新安装。


4/按照说明至少缺少用于常见依赖项的remi安全存储库

是否有充分的理由使用这样一个旧的PHP版本?不幸的是,我必须坚持使用PHP5.6,因为运行另一个软件是必需的。