2010
04.28

Download libssh2 from http://www.libssh2.org/snapshots/lib…0091001.tar.gz

tar -zxvf libssh.x.x.tar.gz

./configure

make all install

Download the pecl-ssh2 installer from http://pecl.php.net/get/ssh2-0.10.tgz

tar -zxvf ssh2-0.11.0.tgz
cd ssh2-0.11.0
phpize

./configure –with-ssh2

make

Copy ssh2.so to your extension_dir specified in php.ini.

grep extension_dir /usr/local/Zend/etc/php.ini
cp modules/ssh2.so /path/to/extension/dir

Then add the extension to your php.ini:
extension=ssh2.so

Restart httpd, and you are all set!