Thursday, May 23, 2013

PHP Caused Segmentation Fault - php-pecl-ssh2

I have being trying to debug a php code for the last couple of days. Coming from Python, it was frustrating not to be able to have nice debugging tools available. I ended up installing latest ssh2 php module to fix this. It seems that PHP :: Bug #63192 was causing this. I tried Eclipse PDT, Xdebug and var_dump, but couldn't figure out how to fix this. 

Here are some technical details, in case you are facing the same problem:
$ rpm -qa|grep ssh2
libssh2-devel-1.2.2-11.el6_3.x86_64
libssh2-1.2.2-11.el6_3.x86_64
php-pecl-ssh2-0.11.0-7.el6.x86_64
  
$ more /etc/issue
CentOS release 6.3 (Final)
Kernel \r on an \m

wget http://pecl.php.net/get/ssh2-0.12.tgz
tar -xzvf ssh2-0.12.tgz 
cd ssh2-0.12
yum install automake make php-devel libtool openssl-devel gcc++ gcc
phpize
yum install gcc php-devel php-pear libssh2 libssh2-devel
./configure 
make
make test
cp modules/ssh2.so   /usr/lib64/php/modules/
service httpd restart

No comments:

Post a Comment

BioChem Related Feeds

Feeds from Journals