Обновление версии PHP (ISPmanager-Pro)

12
SkyLX
На сайте с 16.10.2013
Offline
5
#11

Нет бывалых администраторов серверов, советы исчерпаны?))

Den73
На сайте с 26.06.2010
Offline
523
#12

бесплатные советы исчерпаны))

SkyLX
На сайте с 16.10.2013
Offline
5
#13

Либо большая часть советчиков моего же уровня))

Ожидал большего, от пользователей такого "преславутого форма", ну что ж, решу проблему сам, потратив не мало усилий)

P
На сайте с 16.03.2009
Offline
144
#14
SkyLX:

Тогда что по Вашему это? -

Все security фиксы там есть

Because CentOS and the upstream vendor have backported security patches, the version numbers can often be misleading when you look for CVE fixes. Checking the changelog of a package is a good way to see if the fix has been implemented. Once again, rpm comes to the rescue.
http://wiki.centos.org/TipsAndTricks/YumAndRPM#head-3154e5b76c48ac44a0243d3e846bd4b8ebea7a1f

rpm -qp --changelog php-5.3.3-23.el6_4.x86_64.rpm > changelog

* Fri Jul 12 2013 Remi Collet > - 5.3.3-23
- add security fix for CVE-2013-4113

* Thu Nov 29 2012 Remi Collet > - 5.3.3-22
- php-xml provides php-xmlreader and php-xmlwriter (#874987)
- fix possible NULL derefence and buffer overflow (#879179)
- fix zend garbage collector (#848186, #868375)

* Tue Oct 23 2012 Remi Collet > - 5.3.3-21
- fix CVE reference in previous changelog entry

* Fri Oct 19 2012 Remi Collet > - 5.3.3-20
- remove reproducer from security fix for CVE-2012-0781
...

Но если все-таки хочется обновить -> php 5.3.27, есть в репо centos.alt.ru

Проверяем yum info php

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.linuxwerk.com
* epel: mirrors.n-ix.net
* extras: centos.mirror.linuxwerk.com
* updates: centos.mirror.linuxwerk.com
Available Packages
Name : php
Arch : x86_64
Version : 5.3.3
Release : 23.el6_4

Size : 1.1 M
Repo : updates
Summary : PHP scripting language for creating dynamic web sites
URL : http://www.php.net/
License : PHP
Description : PHP is an HTML-embedded scripting language. PHP attempts to make it
: easy for developers to write dynamically generated webpages. PHP also
: offers built-in database integration for several commercial and
: non-commercial database management systems, so writing a
: database-enabled webpage with PHP is fairly simple. The most common
: use of PHP coding is probably as a replacement for CGI scripts.
:
: The php package contains the module which adds support for the PHP
: language to Apache HTTP Server.

Подключаем, epel и centos.alt.ru

rpm -Uhv http://mirror.yandex.ru/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uhv http://centos.alt.ru/pub/repository/centos/6/x86_64/centalt-release-6-1.noarch.rpm

Проверяем снова

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.linuxwerk.com
* epel: mirrors.n-ix.net
* extras: centos.mirror.linuxwerk.com
* updates: centos.mirror.linuxwerk.com
CentALT | 951 B 00:00
Available Packages
Name : php
Arch : x86_64
Version : 5.3.27
Release : 1.el6

Size : 2.3 M
Repo : CentALT
Summary : PHP scripting language for creating dynamic web sites
URL : http://www.php.net/
License : PHP
Description : PHP is an HTML-embedded scripting language. PHP attempts to make it
: easy for developers to write dynamically generated web pages. PHP also
: offers built-in database integration for several commercial and
: non-commercial database management systems, so writing a
: database-enabled webpage with PHP is fairly simple. The most common
: use of PHP coding is probably as a replacement for CGI scripts.
:
: The php package contains the module which adds support for the PHP
: language to Apache HTTP Server.

Устанавливаем

yum install php php-cli

Проверяем версию php -v

php -v
PHP 5.3.27 (cli) (built: Aug 26 2013 11:46:37)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies



---------- Добавлено 18.10.2013 в 02:06 ----------

__________________________________________________________

upgrade уже установленного php 5.3

php -v
PHP 5.3.3 (cli) (built: Jul 12 2013 20:35:47)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

Аналогично подключаем репо. Далее

yum update

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.linuxwerk.com
* epel: mirrors.n-ix.net
* extras: centos.mirror.linuxwerk.com
* updates: centos.mirror.linuxwerk.com
CentALT | 951 B 00:00
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.3.3-23.el6_4 will be updated
---> Package php.x86_64 0:5.3.27-1.el6 will be an update
---> Package php-cli.x86_64 0:5.3.3-23.el6_4 will be updated
---> Package php-cli.x86_64 0:5.3.27-1.el6 will be an update
---> Package php-common.x86_64 0:5.3.3-23.el6_4 will be updated
---> Package php-common.x86_64 0:5.3.27-1.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================
Package Arch Version Repository Size
========================================================================================================================
Updating:
php x86_64 5.3.27-1.el6 CentALT 2.3 M
php-cli x86_64 5.3.27-1.el6 CentALT 2.2 M
php-common x86_64 5.3.27-1.el6 CentALT 904 k

Transaction Summary
========================================================================================================================
Upgrade 3 Package(s)

Total download size: 5.4 M
Is this ok [y/N]:

Проверяем php -v

PHP 5.3.27 (cli) (built: Aug 26 2013 11:46:37)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
SkyLX
На сайте с 16.10.2013
Offline
5
#15

poiuty, спасибо за развернутый ответ.

Где Вы были раньше?)) Разобрался таки сам, счастлив :)

SkyLX
На сайте с 16.10.2013
Offline
5
#16
foxi:
зачем одно старье обновлять или даунгрейдить до другого старья? 5.4.4 уже давно на дворе.

Спасибо за идею)

Параллельно, собрал, установил и эту версию - 5.4.21, а там уж пусть распоряжается клиент)

12

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