wget -c https://www.libssh2.org/download/libssh2-1.7.0.tar.gz --no-check-certificate
wget -c http://pecl.php.net/get/ssh2-0.13.tgz --no-check-certificate
tar -zxvf libssh2-1.7.0.tar.gz 
cd libssh2-1.7.0
./configure --prefix=/usr/local/libssh2
make && make install

tar -zxvf ssh2-0.13.tgz 
cd ssh2-0.13
/usr/local/php/bin/phpize 
 ./configure --prefix=/usr/local/ssh2 --with-ssh2=/usr/local/libssh2/ --with-php-config=/usr/local/php/bin/php-config 
make
make install