Here are the steps to install the PHP SSH2 extention on RHEL 5.6 with the EPEL repository.
- Install packages that may be needed:
1yum install php-pear php-devel libssh2 libssh2-devel - Temporarily allow binary execution in /tmp
1mount -o remount,exec /tmp -
Install the extension:
1pecl install channel://pecl.php.net/ssh2-0.11.3 - Restore /tmp restrictions:
1mount -o remount,noexec /tmp - Reload apache:
1/sbin/service httpd reload