Firstly I'm running PHP 5.3.3, CentOS 5.7 (2.6.18-274.3.1.el5xen)
Secondly, I basically have no idea what I'm doing... sorry!
First of all I installed libssh2 from http://www.libssh2.org/. Ran configure, make, make install. Don't really understand all of this stuff, but following online instructions seemed to work.
Then ran
pecl install ssh2
So far so good.
Added the relevant extension line to php.ini, as instructed. Restarted apache:
service httpd restart
All good.
But then can't find any reference to ssh in phpInfo().
Tried
php -m | grep ssh2
and got the following error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ssh2.so' - /usr/lib64/php/modules/ssh2.so: undefined symbol: libssh2_sftp_readdir_ex in Unknown on line 0
What have I done wrong/missed out, and how can I fix it?