Installing SSH2 within cPanel

Follow

If you need to use the SSH2 binaries within cpanel, you can custom compile it and include it using the following commands

# cd /usr/local/src
# yum -y install libssh-devel
# wget http://pecl.php.net/get/ssh2 -O ssh2.tar.gz
# tar xzvf ssh2.tar.gz
# cd ssh2-*
# phpize && ./configure --with-ssh2 && make
# cd modules
# cp ssh2.so `grep extension_dir /usr/local/lib/php.ini | grep -v ';' | cut -d '"' -f 2`/
# echo "extension=ssh2.so" >> /usr/local/lib/php.ini

Have more questions? Submit a request

Comments

Powered by Zendesk