Install SSH2 for PHP on Ubuntu

SSH2 is rather simple to install on Ubuntu, simply run the following

Install SSH2 and PHP mod: sudo apt-get install libssh2-1-dev libssh2-php

Or for 16.04 you will need to replace libssh2-php with: 

sudo apt-get install libssh2-1 php-ssh2 -y

Now just restart Apache to ensure the modifications take effect

Restart Apache2: sudo service apache2 restart

Your done.

Comments are closed.