Skip to content

php ssh2 install

nighttimedev edited this page Jun 19, 2019 · 2 revisions
sudo apt-get install php-pear php-dev

sudo apt-get -y install gcc make autoconf libc-dev pkg-config
sudo apt-get -y install libssh2-1-dev
sudo pecl7.X-sp install ssh2-alpha

sudo bash -c "echo extension=ssh2.so > /etc/php7.X-sp/conf.d/ssh2.ini"
sudo service php7.X-fpm-sp restart

https://stackoverflow.com/questions/52078688/sudo-pecl7-2-sp-command-not-found https://serverpilot.io/docs/how-to-install-the-php-ssh2-extension

OR

sudo apt-get install aptitude
sudo aptitude install libssh2-1-dev
sudo aptitude install libssh2-php

Clone this wiki locally