Войти

Показать полную графическую версию : Debian 6 обновить php 5.3.3-7 до 5.3.10 или выше.


mspuz
01-03-2016, 14:16
Добрый день. На VPS хосте (Debian 6) крутятся 6 сайтов, с php версии 5.2.6. Нужно развернуть сайт на новой Joomla, а она требует php не ниже 5.3.10. Через стандартный репозитарий смог обновиться до 5.3.3-7 (использовал squeeze). Перезапустил apache и сайты вроде работают. Но как теперь обновиться до 5.3.10 (или выше - 5.3.29)? В интернете не смог с ходу найти. Спасибо.

oloiphut
01-03-2016, 14:38
Ставьте 5.4 тогда уж.

https://davejamesmiller.com/blog/installing-php-5-4-on-debian-6-squeeze

А вообще говоря, пора обновляться на 7, а то и 8.

mspuz
01-03-2016, 21:21
Поставил php5.4 и случилось то, чего боялся - перестали работать сайты и админка UMI - выдает:


Strict Standards: Declaration of udataStream::translateToXml() should be compatible with umiBaseStream::translateToXml($res = Array) in /var/www/af-bogorodsk.ru/classes/system/subsystems/streams/udata/udataStream.php on line 119

Strict Standards: Declaration of utypeStream::translateToXml() should be compatible with umiBaseStream::translateToXml($res = Array) in /var/www/af-bogorodsk.ru/classes/system/subsystems/streams/utype/utypeStream.php on line 103

Strict Standards: Declaration of upageStream::translateToXml() should be compatible with umiBaseStream::translateToXml($res = Array) in /var/www/af-bogorodsk.ru/classes/system/subsystems/streams/upage/upageStream.php on line 67

Strict Standards: Declaration of uobjectStream::translateToXml() should be compatible with umiBaseStream::translateToXml($res = Array) in /var/www/af-bogorodsk.ru/classes/system/subsystems/streams/uobject/uobjectStream.php on line 64

Strict Standards: Declaration of ufsStream::translateToXml() should be compatible with umiBaseStream::translateToXml($res = Array) in /var/www/af-bogorodsk.ru/classes/system/subsystems/streams/ufs/ufsStream.php on line 237

Strict Standards: Declaration of uselStream::translateToXml() should be compatible with umiBaseStream::translateToXml($res = Array) in /var/www/af-bogorodsk.ru/classes/system/subsystems/streams/usel/uselStream.php on line 639

Strict Standards: Declaration of uhttpStream::translateToXml() should be compatible with umiBaseStream::translateToXml($res = Array) in /var/www/af-bogorodsk.ru/classes/system/subsystems/streams/uhttp/uhttpStream.php on line 47

Strict Standards: Declaration of umessStream::translateToXml() should be compatible with umiBaseStream::translateToXml($res = Array) in /var/www/af-bogorodsk.ru/classes/system/subsystems/streams/umess/umessStream.php on line 94

oloiphut
01-03-2016, 21:45
Ну тогда откатывайтесь. Ведь у вас есть бэкап, верно?
И решайте, как совместить на одной машине кучу движков разной старости.

mspuz
02-03-2016, 09:01
Откатил php и вроде все заработало. Т.е. никак не получиться обновить именно PHP до версии 5.3.10 (или выше)??? Просто не силен в этих тонкостях, а если просто скачать PHP 5.3.29 и установить его?

oloiphut
02-03-2016, 12:49
5.3.29 »
Его можно установить из того же репозитория Dotdeb https://www.dotdeb.org/2014/08/15/php-5-3-29-end-of-life-for-squeeze/

mspuz
06-03-2016, 17:14
Спасибо, установил.

oloiphut
06-03-2016, 19:49
Нужно прописать какой-то репозитарий? Спасибо. »
Он уже у вас прописан. https://www.dotdeb.org/instructions/

aptitude versions php5 покажет доступные версии. Если нету aptitude, установите этот полезный инструмент apt-get install aptitude

mspuz
07-03-2016, 11:09
Что-то я накрутил с репозитариями и теперь у меня такая вот беда:


morbido:~# apt-get install php5-common php5 libapache2-mod-php5 php5-cli php5-cgi php5-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libapache2-mod-php5 : Depends: libonig2 (>= 5.2.0) but it is not installable
Depends: libqdbm14 (>= 1.8.74) but it is not installable
php5-cgi : Depends: libonig2 (>= 5.2.0) but it is not installable
Depends: libqdbm14 (>= 1.8.74) but it is not installable
php5-cli : Depends: libonig2 (>= 5.2.0) but it is not installable
Depends: libqdbm14 (>= 1.8.74) but it is not installable
E: Broken packages


В результате я и удалить не могу и поставить заново не получается.
И еще в /etc/apt/preferences у меня указано: Pin: release n=lenny. Это верно? Вроде как у меня везде указано squeeze.
Система говорит, что php не установлен, но скрипт phpinfo() выдает, что установлен php 5.2.6.




© OSzone.net 2001-2012