Después de actualizar PHP desde 5.1 a 5.2.10, que tiene las siguientes advertencias cuando php -v
:PHP Warning: PHP inicio: ????????: No se puede inicializar el módulo
# php -v
PHP Warning: PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: mhash: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: mssql: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: readline: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: tidy: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP 5.2.10 (cli) (built: Nov 13 2009 11:24:03)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
¿Cómo puedo ¿arreglalo? ¡Gracias!
'extension_dir' apunta a'/user/lib/php/modules' en el que hay muchos archivos '.so'. ¿Cómo puedo saber la versión de esos archivos '.so'? THX – ohho
Cuando se ejecuta PHP como lo hizo en cuestión, para cada módulo incompatibles recibirá mensaje de advertencia: No se puede inicializar el módulo módulo compilado con la API de módulo = 20050922 En su caso módulos incompatibles son: fileinfo, mcrypt, Memcache, mhash, mssql, readline y tidy, intente deshabilitarlos y ver si hace una diferencia. – bas
@Horace: si está en un host tipo Unix, intente esto en la extensión dir: 'cadenas -f * .so | grep API'. Puede haber varias cadenas 'API' en cada .so, pero solo deberían estar con el número de versión de la API –