Actions
Install SSH module for PHP shared » History » Revision 6
« Previous |
Revision 6/8
(diff)
| Next »
Amber Herold, 12/16/2013 02:14 PM
Install SSH module for PHP¶
This installation occurs on the web server.
The ssh2 extension for php¶
First, install the following prerequisites:
Name: | Download site: | CentOS yum package name | Fedora yum package name | SuSE rpm name |
---|---|---|---|---|
php devel | http://www.php.net | php-devel | php-devel | |
libssh2 devel | http://www.libssh2.org | libssh2-devel (found in epel repo) | libssh2-devel | |
SSH PECL extension | http://www.php.net/manual/en/ssh2.installation.php | - | php-pecl-ssh2 |
For newer systems the extension is available through the repository, e.g., on Fedora 12 type "
sudo yum install php-pecl-ssh2
"
Install the ssh2 extension¶
If you have not already done so,
sudo yum install php-pecl-ssh2
Test that the module is working:¶
- go to the info.php that was created earlier in the Install the MRC PHP Extension, http://localhost/info.php or http://HOST.INSTITUTE.EDU/info.php
- search for the ssh2 module, you should see this section:
Still having problems?¶
- on one machine restarting httpd was not enough, I had to restart the entire system to get it working (even though it shows up under info.php)
Updated by Amber Herold almost 11 years ago · 6 revisions