Warning PHP update naar 5.5.31 (CentOS 7.2)

Pagina: 1
Acties:

Vraag


Acties:
  • 0 Henk 'm!

  • Yzord
  • Registratie: Augustus 2002
  • Laatst online: 13-07 10:06

Yzord

Ubi fumus, ibi ignis

Topicstarter
Ik heb geprobeerd vannacht een van mijn systemen te updaten van php 5.4.16 naar 5.5.31 (9 januari 2016).

Bij het updaten kwam ik het volgende tegen in mijn test omgeving en ik vroeg mij af of ik nu door moet gaan met de update in productie.
Installing : php55w-common-5.5.31-1.w7.x86_64 1/22
warning: /etc/php.ini created as /etc/php.ini.rpmnew
Installing : php55w-cli-5.5.31-1.w7.x86_64 2/22
Installing : php55w-xml-5.5.31-1.w7.x86_64 3/22
Installing : php55w-process-5.5.31-1.w7.x86_64 4/22
Installing : 1:php55w-pear-1.10.1-1.w7.noarch 5/22
PHP Warning: PHP Startup: gd: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: mysql: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: mysqli: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: PDO: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysql.so' - /usr/lib64/php/modules/pdo_mysql.so: undefined symbol: php_pdo_register_driver in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_sqlite.so' - /usr/lib64/php/modules/pdo_sqlite.so: undefined symbol: php_pdo_unregister_driver in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/soap.so' - /usr/lib64/php/modules/soap.so: undefined symbol: zend_unmangle_property_name in Unknown on line 0
PHP Warning: PHP Startup: sqlite3: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/wddx.so' - /usr/lib64/php/modules/wddx.so: undefined symbol: php_XML_SetUserData in Unknown on line 0
PHP Warning: PHP Startup: gd: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: mysql: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: mysqli: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: PDO: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysql.so' - /usr/lib64/php/modules/pdo_mysql.so: undefined symbol: php_pdo_register_driver in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_sqlite.so' - /usr/lib64/php/modules/pdo_sqlite.so: undefined symbol: php_pdo_unregister_driver in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/soap.so' - /usr/lib64/php/modules/soap.so: undefined symbol: zend_unmangle_property_name in Unknown on line 0
PHP Warning: PHP Startup: sqlite3: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/wddx.so' - /usr/lib64/php/modules/wddx.so: undefined symbol: php_XML_SetUserData in Unknown on line 0
PHP Warning: PHP Startup: gd: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: mysql: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: mysqli: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: PDO: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysql.so' - /usr/lib64/php/modules/pdo_mysql.so: undefined symbol: php_pdo_register_driver in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_sqlite.so' - /usr/lib64/php/modules/pdo_sqlite.so: undefined symbol: php_pdo_unregister_driver in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/soap.so' - /usr/lib64/php/modules/soap.so: undefined symbol: zend_unmangle_property_name in Unknown on line 0
PHP Warning: PHP Startup: sqlite3: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/wddx.so' - /usr/lib64/php/modules/wddx.so: undefined symbol: php_XML_SetUserData in Unknown on line 0
Iemand bekend hiermee? Ik durf met deze warnings het nog niet echt live te gooien, maar wellicht stelt het niks voor. Iemand een idee?

Alle reacties


Acties:
  • 0 Henk 'm!

  • F_J_K
  • Registratie: Juni 2001
  • Niet online

F_J_K

Moderator CSA/PB

Front verplichte underscores

offtopic:
topic even als vraag aangeduid.

'Multiple exclamation marks,' he went on, shaking his head, 'are a sure sign of a diseased mind' (Terry Pratchett, Eric)


Acties:
  • 0 Henk 'm!

  • emnich
  • Registratie: November 2012
  • Niet online

emnich

kom je hier vaker?

Nee, niet doorgaan maar eerst fixen.

Hoe upgrade je het? Je extensions hebben een andere versie dan PHP dus die moet je ook upgraden maar normaal zou dat in één keer gaan.

[edit]
Je kan met pecl de extensions opnieuw installeren
code:
1
2
3
pecl uninstall module
en
pecl install module

Dat doe je dan voor elke warning.

[ Voor 31% gewijzigd door emnich op 21-01-2016 09:18 ]


Acties:
  • 0 Henk 'm!

  • Yzord
  • Registratie: Augustus 2002
  • Laatst online: 13-07 10:06

Yzord

Ubi fumus, ibi ignis

Topicstarter
Updaten doe ik met
yum install yum-plugin-replace

yum replace php-common --replace-with=php55w-common
Vreemde is dat ik het op 2 test omgevingen het heb geprobeerd. De ene gaf deze fout niet, de andere wel. Enige verschil iks dat de ene memcached heeft draaien en de gene die goed is gegaan niet.
[edit]
Je kan met pecl de extensions opnieuw installeren
code:
1
2
3
pecl uninstall module
en
pecl install module

Dat doe je dan voor elke warning.
Maar de updates zijn al geïnstalleerd. Kan ik het dan nog steeds doen? Daarbij waren de test systemen geheel up to date volgens EPEL en CentOS repos

[ Voor 34% gewijzigd door Yzord op 21-01-2016 09:47 ]


Acties:
  • 0 Henk 'm!

  • emnich
  • Registratie: November 2012
  • Niet online

emnich

kom je hier vaker?

Kijk dan eens wat er nog allemaal geïnstalleerd is
code:
1
rpm -qa \*php\*

Acties:
  • 0 Henk 'm!

  • Yzord
  • Registratie: Augustus 2002
  • Laatst online: 13-07 10:06

Yzord

Ubi fumus, ibi ignis

Topicstarter
rpm -qa \*php\*
php55w-cli-5.5.31-1.w7.x86_64
php55w-process-5.5.31-1.w7.x86_64
php55w-pdo-5.5.31-1.w7.x86_64
php55w-pecl-memcache-3.0.8-2.w7.x86_64
php55w-gd-5.5.31-1.w7.x86_64
php55w-common-5.5.31-1.w7.x86_64
php55w-xml-5.5.31-1.w7.x86_64
php55w-pear-1.10.1-1.w7.noarch
php55w-mysql-5.5.31-1.w7.x86_64
php55w-5.5.31-1.w7.x86_64
php55w-soap-5.5.31-1.w7.x86_64
[root@test ~]#
Dit is wat er nu geïnstalleerd is. En alles werkt in principe ook, maar de warnings maken me een beetje angstig om het uit te rollen

Acties:
  • 0 Henk 'm!

  • emnich
  • Registratie: November 2012
  • Niet online

emnich

kom je hier vaker?

Lijkt me te kloppen. En als je nu php55w-common opnieuw installeerd, krijg je dan nog steeds de warnings?

Acties:
  • 0 Henk 'm!

  • Yzord
  • Registratie: Augustus 2002
  • Laatst online: 13-07 10:06

Yzord

Ubi fumus, ibi ignis

Topicstarter
[root@test ~]# yum replace php-common --replace-with=php55w-common
Loaded plugins: fastestmirror, replace
Replacing packages takes time, please be patient...
Error: Package 'php-common' is not installed.
Lijkt allemaal in orde. In log files kan ik ook niet veel vinden. Maar toch baart het me zorgen, want testbak1 gaf deze errors niet en testbak 2 (welke een 100% kopie is van de productie server) wel.
Pagina: 1