Как обновить PHP 5.3.3 до 5.6 на CentOS 6?

123 4
S
На сайте с 06.08.2008
Offline
130
11962

Система:

  • CentOS release 6.8 (Final)
  • Linux 2.6.32-37-pve #1 SMP Wed Mar 18 08:19:56 CET 2015 i686 i686 i386 GNU/Linux
  • PHP 5.3.3 (cli) (built: Aug 11 2016 20:23:18)
  • with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies

Подключил репо:

wget -q -O - http://www.atomicorp.com/installers/atomic | sh

Обновляю:

yum update php

Лог:

Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
epel/metalink | 20 kB 00:00
* base: mirror.logol.ru
* epel: mirror.logol.ru
* extras: mirror.logol.ru
* updates: mirror.logol.ru
* webtatic: uk.repo.webtatic.com
http://centosup.ispsystem.info/repo/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: centosup. Please verify its path and try again

[root@vps ~]# yum info php
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/metalink | 20 kB 00:00
* base: mirror.h1host.ru
* epel: mirror.logol.ru
* extras: mirror.h1host.ru
* updates: mirror.h1host.ru
* webtatic: uk.repo.webtatic.com
http://centosup.ispsystem.info/repo/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: centosup. Please verify its path and try again

пробовал:

[root@vps ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base centosup epel extras ispsystem-base updates vz-base
: vz-updates webtatic
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@vps ~]# yum update
Loaded plugins: fastestmirror
Setting up Update Process
Determining fastest mirrors
epel/metalink | 20 kB 00:00
* base: centos-mirror.rbc.ru
* epel: fedora-mirror01.rbc.ru
* extras: centos-mirror.rbc.ru
* updates: mirror.h1host.ru
* webtatic: uk.repo.webtatic.com
base | 3.7 kB 00:00
base/primary_db | 3.7 MB 00:00
http://centosup.ispsystem.info/repo/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: centosup. Please verify its path and try again

Репортлист:

[root@vps ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/metalink | 20 kB 00:00
* base: centos-mirror.rbc.ru
* epel: fedora-mirror01.rbc.ru
* extras: centos-mirror.rbc.ru
* updates: mirror.h1host.ru
* webtatic: uk.repo.webtatic.com
http://centosup.ispsystem.info/repo/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

http://centosup.ispsystem.info/repo/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
epel | 4.3 kB 00:00
epel/primary_db | 5.0 MB 00:00
extras | 3.3 kB 00:00
extras/primary_db | 30 kB 00:00
ispsystem-base | 2.9 kB 00:00
ispsystem-base/primary_db | 406 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 5.2 MB 00:00
vz-base | 951 B 00:00
vz-base/primary | 1.3 kB 00:00
vz-base 3/3
vz-updates | 951 B 00:00
vz-updates/primary | 2.1 kB 00:00
vz-updates 8/8
webtatic | 3.6 kB 00:00
webtatic/primary_db | 155 kB 00:00
repo id repo name status
base CentOS-6 - Base 5062
centosup CentOSUP Repository 0
epel Extra Packages for Enterprise Linux 6 - i386 9998
extras CentOS-6 - Extras 39
ispsystem-base ispsystem-base 340
updates CentOS-6 - Updates 728
vz-base vz-base 3
vz-updates vz-updates 8
webtatic Webtatic Repository EL6 - i386 260
repolist: 16438
[root@vps ~]#

Всю голову сломал)). Подскажите куда копать?

K5
На сайте с 21.07.2010
Offline
209
#1

в этом репо пакеты только для 64-битных систем

аська 45два48499два записки на работе (http://memoryhigh.ru) помогу с сайтом, удалю вирусы, настрою впс -> отзывы ТУТ (/ru/forum/836248) и ТАМ (http://www.maultalk.com/topic140187.html) !!!всегда проверяйте данные людей, которые сами пишут вам в аську или скайп!!!
S
На сайте с 06.08.2008
Offline
130
#2
kgtu5:
в этом репо пакеты только для 64-битных систем

Я так понимаю его нужно как-то удалить, но..

[root@vps ~]# rpm -e centosup

error: package centosup is not installed

Или как?

K5
На сайте с 21.07.2010
Offline
209
#3

удалите нерабочие репозитории

в webtatic есть php 5.6 https://us-east.repo.webtatic.com/yum/el6/i386/,

пробуйте так

yum install php56w



---------- Добавлено 01.03.2017 в 08:15 ----------

в /etc/yum.repos.d/ убрать centosup.repo

S
На сайте с 06.08.2008
Offline
130
#4
kgtu5:
удалите нерабочие репозитории

в webtatic есть php 5.6 https://us-east.repo.webtatic.com/yum/el6/i386/,
пробуйте так


---------- Добавлено 01.03.2017 в 08:15 ----------

в /etc/yum.repos.d/ убрать centosup.repo

centosup.repo - убрал

[root@vps yum.repos.d]# rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

Retrieving https://mirror.webtatic.com/yum/el6/latest.rpm
warning: /var/tmp/rpm-tmp.piBRdw: Header V4 DSA/SHA1 Signature, key ID cf4c4ff9: NOKEY
Preparing... ########################################### [100%]
package webtatic-release-6-9.noarch is already installed
[root@vps yum.repos.d]# yum install php56w
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos-mirror.rbc.ru
* epel: fedora-mirror01.rbc.ru
* extras: centos-mirror.rbc.ru
* updates: mirror.h1host.ru
* webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php56w.i386 0:5.6.30-1.w6 will be installed
--> Processing Dependency: php56w-common(x86-32) = 5.6.30-1.w6 for package: php56w-5.6.30-1.w6.i386
--> Processing Dependency: php56w-cli(x86-32) = 5.6.30-1.w6 for package: php56w-5.6.30-1.w6.i386
--> Processing Dependency: php56w-cli = 5.6.30-1.w6 for package: php56w-5.6.30-1.w6.i386
--> Running transaction check
---> Package php56w-cli.i386 0:5.6.30-1.w6 will be installed
---> Package php56w-common.i386 0:5.6.30-1.w6 will be installed
--> Processing Conflict: php56w-common-5.6.30-1.w6.i386 conflicts php-common < 5.6
--> Finished Dependency Resolution
Error: php56w-common conflicts with php-common-5.3.3-48.el6_8.i686
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@vps yum.repos.d]#
K5
На сайте с 21.07.2010
Offline
209
#5

конфликт с php-common старой версии, сначала удалить

yum remove php php-common

затем установить

yum install php56w php56w-common php56w-cli
S
На сайте с 06.08.2008
Offline
130
#6
kgtu5:
конфликт с php-common старой версии, сначала удалить

затем установить

Спасибо большое!

Жду кошель вебмани в ЛС ))

ЗЫ: Спрошу тут же..

При удалении\обновлении сыпались ошибки ионкуба.. Это не кретично?

[root@vps yum.repos.d]# yum remove php php-common

--- вырезано---

Installed size: 65 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Erasing : ispmanager-pkg-roundcube-5.48.0-1.el6.i686 1/33
Erasing : roundcubemail-1.0.9-1.el6.noarch 2/33
warning: /etc/httpd/conf.d/roundcubemail.conf saved as /etc/httpd/conf.d/roundcubemail.conf.rpmsave
Erasing : php-pear-Net-SMTP-1.6.1-1.el6.noarch 3/33
Failed loading /ioncube_loader_lin_5.3.so: /ioncube_loader_lin_5.3.so: cannot open shared object file: No such file or directory
Failed loading /usr/local/ioncube/ioncube_loader.so: /usr/local/ioncube/ioncube_loader.so: cannot open shared object file: No such file or directory
Erasing : php-pear-Net-Sieve-1.3.4-1.el6.noarch 4/33
Failed loading /ioncube_loader_lin_5.3.so: /ioncube_loader_lin_5.3.so: cannot open shared object file: No such file or directory
Failed loading /usr/local/ioncube/ioncube_loader.so: /usr/local/ioncube/ioncube_loader.so: cannot open shared object file: No such file or directory
Erasing : php-pear-Mail-mimeDecode-1.5.5-1.el6.noarch 5/33
Failed loading /ioncube_loader_lin_5.3.so: /ioncube_loader_lin_5.3.so: cannot open shared object file: No such file or directory
Failed loading /usr/local/ioncube/ioncube_loader.so: /usr/local/ioncube/ioncube_loader.so: cannot open shared object file: No such file or directory
Erasing : php-pear-Mail-Mime-1.8.4-1.el6.noarch 6/33
Failed loading /ioncube_loader_lin_5.3.so: /ioncube_loader_lin_5.3.so: cannot open shared object file: No such file or directory
Failed loading /usr/local/ioncube/ioncube_loader.so: /usr/local/ioncube/ioncube_loader.so: cannot open shared object file: No such file or directory
Erasing : php-pear-Net-IDNA2-0.1.1-3.el6.noarch 7/33
Failed loading /ioncube_loader_lin_5.3.so: /ioncube_loader_lin_5.3.so: cannot open shared object file: No such file or directory
Failed loading /usr/local/ioncube/ioncube_loader.so: /usr/local/ioncube/ioncube_loader.so: cannot open shared object file: No such file or directory


--- вырезано---

Complete!
[root@vps yum.repos.d]# php -v
Failed loading /ioncube_loader_lin_5.3.so: /ioncube_loader_lin_5.3.so: cannot open shared object file: No such file or directory
Failed loading /usr/local/ioncube/ioncube_loader.so: /usr/local/ioncube/ioncube_loader.so: cannot open shared object file: No such file or directory
Failed loading /usr/lib/php/modules/ZendGuardLoader.so: /usr/lib/php/modules/ZendGuardLoader.so: undefined symbol: zend_get_hash_value
PHP 5.6.30 (cli) (built: Jan 19 2017 23:06:47)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
[root@vps yum.repos.d]#

Поправить можно?

K5
На сайте с 21.07.2010
Offline
209
#7
ошибки ионкуба

критично, версия ioncube для каждой версии php своя ☝

кошель

зачем? это форум, тут можно спрашивать и это бесплатно ;)

S
На сайте с 06.08.2008
Offline
130
#8

Фак, походу слетело всё остальное (((

IonCube Loader:
Не установлено
Наличие MySQL:
Не установлено
Расширение iconv:
Установлено
Расширение mbstring:
Не установлено
Расширение mcrypt:
Не установлено
Расширение zlib:
Не установлено
K5
На сайте с 21.07.2010
Offline
209
#9

spiderbuber,

yum install php56w-mcrypt php56w-mbstring php56w-mysql zlib glibc-common

php должен подгружать ioncube_loader_lin_5.6.so и ioncube_loader_lin_5.6_ts.so вместо

ioncube_loader_lin_5.3.so и ioncube_loader_lin_5.3_ts.so

Andreyka
На сайте с 19.02.2005
Offline
822
#10

На будущее - для yum есть плагин replace, которым можно заменить текущий PHP на новый без удаления и с сохранением всех расширений, кроме зенда/кубика - их придется полюбэ ставить заново.

Не стоит плодить сущности без необходимости
123 4

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий