Php Ssh2

Having something like this happening -

Have done all the above and using the test.php still fails

?Is there a php_ssh2.so file made somewhere along this road?
I can't find it.

I did the following using the latest versions from sourceforge.net:
cd /usr/src
downloaded libssh2-1.0.tar.gz
tar -zxvf libssh2-1.0.tar.gx
cd libssh2-1.0
./configure
make all installed
pecl install -f ssh2
moved the libssh2.so.1.0.0 to my /usr/lib64 folder
created links libssh2.so and libssh2.so.1 to libssh2.so.1.0.0
moved the ssh2.so /usr/lib64/php/modules (to match path in php.ini)
added extension=ssh2.so to the php.ini folder.

test.php still fails
info.php does not show any php_ssh2 section
[so far this is the same as above work by others]

Then I went to make the changes to ssh2.c and found that it was not there.
Found it in - ssh2-0.11.0.tgz - so did the following
cd /usr/src
downloaded ssh2-0.11.0.tgz
tar -zxvf ssh2-0.11.0.tgz
cd ssh2-0.11.0
Checked for the recommended changes and found that ssh2-0.11.0 had all of them.
phpize
./configure
make

This created /usr/src/ssh2-0.11.0/modules/ssh2.so
I was expecting a php_ssh2.so module to be created -
Moved this to ssh2.so /usr/lib64/php/modules (to match path in php.ini)
test.php still fails
info.php does not show any php_ssh2 section

I am running on RHEL 5 with PHP 5.1.6

[note: service sshd restart and service httpd restart done before each test]
 
Just found that I am getting an error in my php_error.log file when the ssh2.so is being loaded.


[22-Jan-2009 17:23:27] PHP Warning: PHP Startup: ssh2: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP compiled with module API=20050922, debug=0, thread-safety=0
These options need to match
in Unknown on line 0

Now I have compiled ssh2-0.11.0 on the same system as the PHP - what is going on here.
My php ver is 5.1.6 - do I have some lib incompatibilities - if so how do I get around this???
 
Back
Top