SSH2 pecl

From Server Knowledge Base
Jump to navigationJump to search

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
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

"" > /etc/php5/conf.d/ssh2.ini

Restart apache

/etc/init.d/apache2 restart



yum install php-pecl-apc.x86_64

For Crypt:SSLEay, Net:SSL and SSLEay use this guide.