SSH2 pecl
From Server Knowledge Base
Jump to navigationJump to searchThe printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Install development packages.
apt-get install -y php5-dev php-pear
Install the libssh packages.
apt-get install -y libssh2-1 libssh2-1-dev # download + extract package wget http://pecl.php.net/get/ssh2-0.11.3.tgz tar -zxvf ssh2-0.11.3.tgz ; cd ssh2-0.11.3
Prepare the package for installed version of php phpize, configure package, make and install.
./configure ; make ; make install
Enable the module echo
"module=ssh2.so" > /etc/php5/conf.d/ssh2.ini
Restart apache
/etc/init.d/apache2 restart
Help: http://pecl.php.net/package/ssh2
CentOS
yum install php-pecl-apc.x86_64
For Crypt:SSLEay, Net:SSL and SSLEay use this guide.