Project

General

Profile

Install SSH module for PHP shared » History » Revision 6

Revision 5 (Amber Herold, 12/16/2013 02:13 PM) → Revision 6/8 (Amber Herold, 12/16/2013 02:14 PM)

h1. Install SSH module for PHP 

 This installation occurs on the web server. 

 h2. 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 | | 

 bq. For newer systems the extension is available through the repository, e.g., on Fedora 12 type "@sudo yum install php-pecl-ssh2@" 

 h2. CentOS 6: Install the ssh2 extension 

 If you have not already done so, 
 <pre> 
 sudo yum install php-pecl-ssh2 
 </pre> 


 h2. 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: 

 !http://emg.nysbc.org/attachments/220/ssh2box.png! 

 h2. 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)