how install pecl ssh2 using Package

Hello

in our Dedicated servers, due attacks, incoming connection blocked for sometimes, so 'command pecl install -f ssh2' not work on on our servers,

first download this link and upload to your server using filezilla or other FTP clients
http://hostsale.net/dl/ssh2-0.13.tgz

then run below commands one by one:

tar vxzf ssh2-0.13.tgz
cd ssh2-0.13
phpize
./configure --with-ssh2
make
make install
echo extension=ssh2.so > /etc/php.d/ssh2.ini
service httpd restart
php -m | grep ssh2
/usr/sbin/apachectl restart

Enjoy.
  • php, ssh2, pecl ssh2
  • 1 Users Found This Useful
Was this answer helpful?