Re: PHP upgrade problem

From: Date: Mon, 04 Jul 2005 13:28:58 +0000
Subject: Re: PHP upgrade problem
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-16429@lists.php.net to get a copy of this message
Because you are using a CGI version of PHP, you have to edit httpd.conf and find the line that loads PHP (I think it's something like "AddAction application/x-httpd-php /path/to/php", but I'm not sure), and change the path. Have you considered using the shared-module version of PHP? Paul wrote:
Hi there, I've just upgraded my server from PHP 4.3.10 & MySQL 3.23 to... and here is the story: I've first upgraded Mysql to 4.0 and then 4.1, then got PHP 4.3.11 sources and compiled them. This installed a new version of php in /usr/local/bin/php: # /usr/local/bin/php -v PHP 4.3.11 (cgi) (built: Jul 3 2005 20:58:28) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies # /usr/local/bin/php -m [PHP Modules] bcmath calendar ctype ftp mysql overload pcre posix session standard tokenizer xml But the old version (4.3.10) still resides at: # /usr/bin/php -v PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/mysql.so' - /usr/lib/mysql/libmysqlclient.so.10: symbol __fprintf_chk, version GLIBC_2.3.4 not defined in file libc.so.6 with link time reference in Unknown on line 0 PHP 4.3.10 (cgi) (built: Dec 21 2004 10:27:48) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies and ... as you can see has broken mysql module: /usr/bin/php -v PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/mysql.so' - /usr/lib/mysql/libmysqlclient.so.10: symbol __fprintf_chk, version GLIBC_2.3.4 not defined in file libc.so.6 with link time reference in Unknown on line 0 PHP 4.3.10 (cgi) (built: Dec 21 2004 10:27:48) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies ~ [1006]# /usr/bin/php -m PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/mysql.so' - /usr/lib/mysql/libmysqlclient.so.10: symbol __fprintf_chk, version GLIBC_2.3.4 not defined in file libc.so.6 with link time reference in Unknown on line 0 [PHP Modules] bcmath bz2 calendar ctype curl dba dbx dio exif ftp gd gettext gmp iconv ncurses openssl overload pcre posix pspell session shmop sockets standard sysvsem sysvshm tokenizer wddx xml xslt yp zlib The main problem is that Apache still uses PHP 4.3.10 and I get an error if I try to use Mysql module: Warning: dl(): Unable to load dynamic library '/usr/lib/php4/mysql.so' - /usr/lib/mysql/libmysqlclient.so.10: symbol __fprintf_chk, version GLIBC_2.3.4 not defined in file libc.so.6 with link time reference in ... Anyone know a solution to this? Thank you very much, Paul


« previous php.install (#16429) next »