Topic: Problems in Upgrade from php-5.2.4 to php-5.3.8
Hi Remi,
I just tried to update to php 5.3.8 from php 5.2.4 using Remi repository, by installing the rpms epel-release and remi-release, on the Centos 5.4 64 bit Server. It used to update fine but today when I tried to update again, I got problems. The php-5.2.4 got updated to php-5.3.8.
I tried the following comands:
#wget http://download.fedora.redhat.com/pub/e … noarch.rpm
#wget http://rpms.famillecollet.com/enterpris … ease-5.rpm
#rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
#yum --enablerepo=remi update php php-*
Please find below the output:
#rpm -qa php\* | sort
php-5.3.8-1.el5.remi
php-bcmath-5.3.8-1.el5.remi
php-cli-5.3.8-1.el5.remi
php-common-5.3.8-1.el5.remi
php-dba-5.3.8-1.el5.remi
php-devel-5.3.8-1.el5.remi
php-eaccelerator-0.9.6.1-9.el5.remi
php-embedded-5.3.8-1.el5.remi
php-gd-5.3.8-1.el5.remi
php-imap-5.3.8-1.el5.remi
php-ldap-5.3.8-1.el5.remi
php-mbstring-5.3.8-1.el5.remi
php-mcrypt-5.3.8-1.el5.remi
php-mssql-5.3.8-1.el5.remi
php-mysql-5.3.8-1.el5.remi
php-odbc-5.3.8-1.el5.remi
php-pdo-5.3.8-1.el5.remi
php-pear-1.9.4-2.el5.remi
php-pear-Auth-SASL-1.0.5-1.el5.remi
php-pear-DB-1.7.14-1.el5.remi
php-pear-Date-1.4.7-7.el5.remi
php-pear-File-1.4.0-1.el5.remi
php-pear-File-CSV-1.0.0-1.el5.remi
php-pear-File-Util-1.0.0-1.el5.remi
php-pear-HTTP-Request-1.4.4-4.el5.remi
php-pear-Log-1.12.7-1.el5.remi
php-pear-MDB2-2.5.0-0.3.b3.el5.remi
php-pear-MDB2-Driver-mysql-1.5.0-0.1.b3.el5.remi
php-pear-Mail-1.2.0-1.el5.remi
php-pear-Mail-Mime-1.8.2-1.el5.remi
php-pear-Net-SMTP-1.6.1-1.el5.remi
php-pear-Net-Sieve-1.3.2-1.el5.remi
php-pear-Net-Socket-1.0.10-1.el5.remi
php-pear-Net-URL-1.0.15-6.el5.remi
php-pecl-memcache-3.0.6-1.el5.remi
php-pecl-ncurses-1.0.1-1.el5.remi
php-pgsql-5.3.8-1.el5.remi
php-readline-5.1.6-15.el5.centos.1
php-snmp-5.3.8-1.el5.remi
php-soap-5.3.8-1.el5.remi
php-tidy-5.3.8-1.el5.remi
php-xml-5.3.8-1.el5.remi
php-xmlrpc-5.3.8-1.el5.remi
php52-5.2.17-1.ius.el5
php52-cli-5.2.17-1.ius.el5
php52-common-5.2.17-1.ius.el5
#rpm -Va php\*
S.5..... c /etc/httpd/conf.d/php.conf
S.5....T /usr/share/pear/.depdb
.......T /usr/share/pear/.depdblock
S.5....T /usr/share/pear/.filemap
.......T /usr/share/pear/.lock
S.5..... /usr/bin/phpize
S.5..... d /usr/share/man/man1/php.1.gz
S.5..... d /usr/share/man/man1/phpize.1.gz
S.5..... c /etc/php.ini
#php -v
PHP Warning: PHP Startup: bcmath: Unable to initialize module
Module compiled with module API=20090626, 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: Unable to load dynamic library '/usr/lib64/php/modules/curl.so' - /usr/lib64/php/modules/curl.so: undefined symbol: zend_ini_string_ex in Unknown on line 0
PHP Warning: PHP Startup: dba: Unable to initialize module
Module compiled with module API=20090626, 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: Unable to load dynamic library '/usr/lib64/php/modules/dom.so' - /usr/lib64/php/modules/dom.so: undefined symbol: zend_replace_error_handling in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/eaccelerator.so' - /usr/lib64/php/modules/eaccelerator.so: undefined symbol: zend_str_tolower_dup in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/fileinfo.so' - /usr/lib64/php/modules/fileinfo.so: undefined symbol: gc_remove_zval_from_buffer in Unknown on line 0
PHP Warning: PHP Startup: gd: Unable to initialize module
Module compiled with module API=20090626, 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: Unable to load dynamic library '/usr/lib64/php/modules/imap.so' - /usr/lib64/php/modules/imap.so: undefined symbol: zend_ini_string_ex in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ldap.so' - /usr/lib64/php/modules/ldap.so: undefined symbol: gc_remove_zval_from_buffer in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mbstring.so' - /usr/lib64/php/modules/mbstring.so: undefined symbol: zend_ini_string_ex in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mcrypt.so' - /usr/lib64/php/modules/mcrypt.so: undefined symbol: zend_ini_string_ex in Unknown on line 0
PHP Warning: PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20090626, 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=20090626, 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: mysql: Unable to initialize module
Module compiled with module API=20090626, 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: Unable to load dynamic library '/usr/lib64/php/modules/mysqli.so' - /usr/lib64/php/modules/mysqli.so: undefined symbol: zend_ptr_stack_init_ex in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ncurses.so' - /usr/lib64/php/modules/ncurses.so: undefined symbol: gc_remove_zval_from_buffer in Unknown on line 0
PHP Warning: PHP Startup: odbc: Unable to initialize module
Module compiled with module API=20090626, 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: Unable to load dynamic library '/usr/lib64/php/modules/pdo.so' - /usr/lib64/php/modules/pdo.so: undefined symbol: gc_remove_zval_from_buffer in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_dblib.so' - /usr/lib64/php/modules/pdo_dblib.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_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_odbc.so' - /usr/lib64/php/modules/pdo_odbc.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_pgsql.so' - /usr/lib64/php/modules/pdo_pgsql.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_register_driver in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pgsql.so' - /usr/lib64/php/modules/pgsql.so: undefined symbol: gc_remove_zval_from_buffer in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/phar.so' - /usr/lib64/php/modules/phar.so: undefined symbol: zend_resolve_path 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: snmp: Unable to initialize module
Module compiled with module API=20090626, 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: Unable to load dynamic library '/usr/lib64/php/modules/soap.so' - /usr/lib64/php/modules/soap.so: undefined symbol: gc_remove_zval_from_buffer in Unknown on line 0
PHP Warning: PHP Startup: tidy: Unable to initialize module
Module compiled with module API=20090626, 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: Unable to load dynamic library '/usr/lib64/php/modules/wddx.so' - /usr/lib64/php/modules/wddx.so: undefined symbol: zend_rebuild_symbol_table in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/xmlreader.so' - /usr/lib64/php/modules/xmlreader.so: undefined symbol: dom_node_class_entry in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/xmlrpc.so' - /usr/lib64/php/modules/xmlrpc.so: undefined symbol: gc_remove_zval_from_buffer in Unknown on line 0
PHP Warning: PHP Startup: xmlwriter: Unable to initialize module
Module compiled with module API=20090626, 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: Unable to load dynamic library '/usr/lib64/php/modules/xsl.so' - /usr/lib64/php/modules/xsl.so: undefined symbol: dom_node_class_entry in Unknown on line 0
PHP 5.2.17 (cli) (built: Feb 2 2011 11:19:21)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
And very strangely:
#php -n -v
PHP 5.2.17 (cli) (built: Feb 2 2011 11:19:21)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
#rpm -qi httpd
Name : httpd Relocations: (not relocatable)
Version : 2.2.3 Vendor: CentOS
Release : 31.el5.centos.4 Build Date: Sat Mar 27 13:56:02 2010
Install Date: Wed Sep 7 00:08:24 2011 Build Host: builder10.centos.org
Group : System Environment/Daemons Source RPM: httpd-2.2.3-31.el5.centos.4.src.rpm
Size : 3434578 License: Apache Software License
Signature : DSA/SHA1, Sun Mar 28 11:39:23 2010, Key ID a8a447dce8562897
URL : http://httpd.apache.org/
Summary : Apache HTTP Server
Description :
The Apache HTTP Server is a powerful, efficient, and extensible
web server.
The apache error_log is:
PHP Warning: PHP Startup: bcmath: Unable to initialize module\nModule compiled with module API=20090626, debug=0, thread-safety=0\nPHP compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/curl.so' - /usr/lib64/php/modules/curl.so: undefined symbol: zend_ini_string_ex in Unknown on line 0
PHP Warning: PHP Startup: dba: Unable to initialize module\nModule compiled with module API=20090626, debug=0, thread-safety=0\nPHP compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/dom.so' - /usr/lib64/php/modules/dom.so: undefined symbol: zend_replace_error_handling in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/eaccelerator.so' - /usr/lib64/php/modules/eaccelerator.so: undefined symbol: zend_str_tolower_dup in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/fileinfo.so' - /usr/lib64/php/modules/fileinfo.so: undefined symbol: gc_remove_zval_from_buffer in Unknown on line 0
PHP Warning: PHP Startup: gd: Unable to initialize module\nModule compiled with module API=20090626, debug=0, thread-safety=0\nPHP compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/imap.so' - /usr/lib64/php/modules/imap.so: undefined symbol: zend_ini_string_ex in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ldap.so' - /usr/lib64/php/modules/ldap.so: undefined symbol: gc_remove_zval_from_buffer in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mbstring.so' - /usr/lib64/php/modules/mbstring.so: undefined symbol: zend_ini_string_ex in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mcrypt.so' - /usr/lib64/php/modules/mcrypt.so: undefined symbol: zend_ini_string_ex in Unknown on line 0
PHP Warning: PHP Startup: memcache: Unable to initialize module\nModule compiled with module API=20090626, debug=0, thread-safety=0\nPHP compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: mssql: Unable to initialize module\nModule compiled with module API=20090626, debug=0, thread-safety=0\nPHP compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: mysql: Unable to initialize module\nModule compiled with module API=20090626, debug=0, thread-safety=0\nPHP compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqli.so' - /usr/lib64/php/modules/mysqli.so: undefined symbol: zend_ptr_stack_init_ex in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ncurses.so' - /usr/lib64/php/modules/ncurses.so: undefined symbol: gc_remove_zval_from_buffer in Unknown on line 0
PHP Warning: PHP Startup: odbc: Unable to initialize module\nModule compiled with module API=20090626, debug=0, thread-safety=0\nPHP compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo.so' - /usr/lib64/php/modules/pdo.so: undefined symbol: gc_remove_zval_from_buffer in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_dblib.so' - /usr/lib64/php/modules/pdo_dblib.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_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_odbc.so' - /usr/lib64/php/modules/pdo_odbc.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_pgsql.so' - /usr/lib64/php/modules/pdo_pgsql.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_register_driver in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pgsql.so' - /usr/lib64/php/modules/pgsql.so: undefined symbol: gc_remove_zval_from_buffer in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/phar.so' - /usr/lib64/php/modules/phar.so: undefined symbol: zend_resolve_path in Unknown on line 0
PHP Warning: PHP Startup: readline: Unable to initialize module\nModule compiled with module API=20050922, debug=0, thread-safety=0\nPHP compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: snmp: Unable to initialize module\nModule compiled with module API=20090626, debug=0, thread-safety=0\nPHP compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n 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: gc_remove_zval_from_buffer in Unknown on line 0
PHP Warning: PHP Startup: tidy: Unable to initialize module\nModule compiled with module API=20090626, debug=0, thread-safety=0\nPHP compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n 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: zend_rebuild_symbol_table in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/xmlreader.so' - /usr/lib64/php/modules/xmlreader.so: undefined symbol: dom_node_class_entry in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/xmlrpc.so' - /usr/lib64/php/modules/xmlrpc.so: undefined symbol: gc_remove_zval_from_buffer in Unknown on line 0
PHP Warning: PHP Startup: xmlwriter: Unable to initialize module\nModule compiled with module API=20090626, debug=0, thread-safety=0\nPHP compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/xsl.so' - /usr/lib64/php/modules/xsl.so: undefined symbol: dom_node_class_entry in Unknown on line 0
Now the problem is why php-5.2.17 (cli) is showing up instead of php-5.3.8? And therefore why is apache error_log is showing so many PHP Warnings? How can I rectify the problem?
Thanks in advance...