@entermix

Как правильно обновить PHP?

Есть 2 сервера с Centos 7:

php5.6 (server1)
php5.4 (server2)

Удалил на втором php 5.4 (yum remove php-common)

[root@user yum.repos.d]# yum list installed | grep php
isp-php52.x86_64                     5.2.17-95.el7.centos        @ispsystem-base
isp-php53.x86_64                     5.3.29-95.el7.centos        @ispsystem-base
isp-php54.x86_64                     5.4.45-95.el7.centos        @ispsystem-base
isp-php55.x86_64                     5.5.38-102.el7.centos       @ispsystem-base
isp-php56.x86_64                     5.6.24-103.el7.centos       @ispsystem-base
isp-php70.x86_64                     7.0.9-104.el7.centos        @ispsystem-base


При установке по сл. схеме, происходит ошибка:

[root@user yum.repos.d]# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Retrieving https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Preparing...                          ################################# [100%]
	package epel-release-7-9.noarch is already installed
[root@user yum.repos.d]# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
Retrieving https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
warning: /var/tmp/rpm-tmp.JcHYdn: Header V4 RSA/SHA1 Signature, key ID 62e74ca5: NOKEY
Preparing...                          ################################# [100%]
	package webtatic-release-7-3.noarch is already installed
[root@user yum.repos.d]# yum install php56w php56w-opcache
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos-mirror.rbc.ru
 * epel: download.ispsystem.com
 * extras: centos-mirror.rbc.ru
 * updates: centos-mirror.rbc.ru
 * webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php56w.x86_64 0:5.6.29-1.w6 will be installed
--> Processing Dependency: php56w-common(x86-64) = 5.6.29-1.w6 for package: php56w-5.6.29-1.w6.x86_64
--> Processing Dependency: php56w-cli(x86-64) = 5.6.29-1.w6 for package: php56w-5.6.29-1.w6.x86_64
--> Processing Dependency: php56w-cli = 5.6.29-1.w6 for package: php56w-5.6.29-1.w6.x86_64
--> Processing Dependency: httpd-mmn = 20051115 for package: php56w-5.6.29-1.w6.x86_64
---> Package php56w-opcache.x86_64 0:5.6.29-1.w6 will be installed
--> Running transaction check
---> Package php56w.x86_64 0:5.6.29-1.w6 will be installed
--> Processing Dependency: httpd-mmn = 20051115 for package: php56w-5.6.29-1.w6.x86_64
---> Package php56w-cli.x86_64 0:5.6.29-1.w6 will be installed
---> Package php56w-common.x86_64 0:5.6.29-1.w6 will be installed
--> Processing Dependency: libgmp.so.3()(64bit) for package: php56w-common-5.6.29-1.w6.x86_64
--> Finished Dependency Resolution
Error: Package: php56w-common-5.6.29-1.w6.x86_64 (webtatic)
           Requires: libgmp.so.3()(64bit)
Error: Package: php56w-5.6.29-1.w6.x86_64 (webtatic)
           Requires: httpd-mmn = 20051115
           Installed: httpd-2.4.6-40.el7.centos.x86_64 (@base)
               httpd-mmn = 20120211
               httpd-mmn = 20120211x8664
               httpd-mmn = 20120211-x86-64
           Available: httpd-2.4.6-45.el7.centos.x86_64 (base)
               httpd-mmn = 20120211x8664
               httpd-mmn = 20120211-x86-64
               httpd-mmn = 20120211
 You could try using --skip-broken to work around the problem
** Found 11 pre-existing rpmdb problem(s), 'yum check' output follows:
grep-2.20-3.el6_7.1.x86_64 has missing requires of libpcre.so.0()(64bit)
hal-info-20090716-5.el6.noarch has missing requires of hal >= ('0', '0.5.10', None)
python-iwlib-0.1-1.2.el6.x86_64 has missing requires of libpython2.6.so.1.0()(64bit)
python-iwlib-0.1-1.2.el6.x86_64 has missing requires of python(abi) = ('0', '2.6', None)
python-simplejson-2.0.9-3.1.el6.x86_64 has missing requires of libpython2.6.so.1.0()(64bit)
python-simplejson-2.0.9-3.1.el6.x86_64 has missing requires of python(abi) = ('0', '2.6', None)
1:readahead-1.5.6-2.el6.x86_64 has missing requires of upstart
1:redhat-upgrade-tool-0.7.22-3.el6.centos.noarch has missing requires of preupgrade-assistant >= ('0', '1.0.2', '4')
1:redhat-upgrade-tool-0.7.22-3.el6.centos.noarch has missing requires of python(abi) = ('0', '2.6', None)
satyr-0.16-2.el6.x86_64 has missing requires of librpm.so.1()(64bit)
2:vim-enhanced-7.4.629-5.el6.x86_64 has missing requires of perl(:MODULE_COMPAT_5.10.1)


Проблема с репозиториями? Я посмотрел список на обеих:

server1
CentOS-Base.repo
CentOS-Debuginfo.repo
CentOS-Media.repo
CentOS-Vault.repo
epel.repo
epel-testing.repo
ispsystem.repo
CentOS-CR.repo
CentOS-fasttrack.repo
CentOS-Sources.repo
enetres.repo
epel.repo.rpmsave
ispsystem-base.repo

[root@user yum.repos.d]# yum list php56w
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.corbina.net
 * epel: fedora-mirror01.rbc.ru
 * extras: mirror.corbina.net
 * updates: mirror.corbina.net
Installed Packages
php56w.x86_64   5.6.28-1.w7   @webtatic

server2
CentOS-Base.repo
CentOS-fasttrack.repo
CentOS-Vault.repo
ispsystem-base.repo
redhat-upgrade-upg.repo
webtatic.repo
CentOS-CR.repo
CentOS-Media.repo
epel.repo
ispsystem.repo
upgradetool.repo
webtatic-testing.repo
CentOS-Debuginfo.repo
CentOS-Sources.repo
epel-testing.repo
redhat-upgrade-cmdline-instrepo.repo
webtatic-archive.repo

[root@user yum.repos.d]# yum list php56w
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos-mirror.rbc.ru
 * epel: download.ispsystem.com
 * extras: centos-mirror.rbc.ru
 * updates: centos-mirror.rbc.ru
 * webtatic: uk.repo.webtatic.com
Available Packages
php56w.x86_64   5.6.29-1.w6   webtatic


Я подключил что то лишнее? Как избавится?
  • Вопрос задан
  • 1538 просмотров
Решения вопроса 1
Не смотрите что написано для ispmanager. Вам отлично подойдет это решение.
https://proadminz.ru/neskolko-versiy-php-i-obnovle...
Ответ написан
Пригласить эксперта
Ответы на вопрос 1
@arround
У Вас ISP manager v5, PHP должно тянуть из репозитория панельки. Попробуйте отключить или удалить репозиторий webtatic
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы