yum install php-devel
yum install libssh2-devel
Descarcare pachet libssh2 de la http://libssh2.org:
cd /opt wget https://libssh2.org/download/libssh2-1.8.0.tar.gz tar vxzf libssh2-1.4.2.tar.gz cd libssh2-1.4.2 ./configure make make install
Descarcare pachet php-ssh2 de la http://pecl.php.net/package/ssh2:
cd /opt wget http://pecl.php.net/get/ssh2-0.13.tgz tar vxzf ssh2-0.11.3 cd ssh2-0.11.3 phpize ./configure --with-ssh2 make make install
La finalul instalarii fisierul ssh2.so va fi copiat la locatia /usr/lib64/php/modules.
Modifica fisierul php.ini adaugand linia urmatoare in sectiunea extensions:
extension=ssh2.so
Verificare utiliand functia phpinfo().
La final trebuie restartat serviciul httpd.