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