After update to php 5.4
php can't load ssh2.so module and has error msg
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ssh2.so' - /usr/lib64/php/modules/ssh2.so: undefined symbol: php_checkuid in
Unknown on line 0
in error_log
Solutions :
download pecl ssh2 0.12
http://pecl.php.net/get/ssh2
tar -zxvf ssh2-0.12
cd ssh2-0.12
/usr/bin/phpize
./configure --with-ssh2 --with-php-config=/usr/bin/php-config
restart httpd
[root@www /]# php -v
回覆刪除PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ssh2.so' - /usr/lib64/php/modules/ssh2.so: undefined symbol: php_checkuid in Unknown on line 0
PHP 5.4.33 (cli) (built: Oct 14 2014 12:10:33)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with the ionCube PHP Loader v4.4.1, Copyright (c) 2002-2013, by ionCube Ltd.
[root@www /]# pecl install ssh2
pecl/ssh2 is already installed and is the same as the released version 0.12
install failed
[root@www /]#