how install pecl ssh2 using Package


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

then run below commands one by one:

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

  • php, ssh2, pecl ssh2
  • 0 Users Found This Useful
Was this answer helpful?