Project

General

Profile

Install SSH module for PHP shared » History » Version 5

Amber Herold, 12/16/2013 02:13 PM

1 1 Amber Herold
h1. Install SSH module for PHP
2
3
This installation occurs on the web server.
4
5
h2. The ssh2 extension for php
6
7
First, install the following prerequisites:
8
9
|_.Name:|_.Download site:|_.CentOS yum package name|_.Fedora yum package name|_.SuSE rpm name|
10
|php devel |http://www.php.net |php-devel |php-devel| |
11
|libssh2 devel |http://www.libssh2.org |libssh2-devel (found in epel repo)|libssh2-devel| |
12
|SSH PECL extension |http://www.php.net/manual/en/ssh2.installation.php |- |php-pecl-ssh2 | |
13
14
bq. For newer systems the extension is available through the repository, e.g., on Fedora 12 type "@sudo yum install php-pecl-ssh2@"
15
16 4 Neil Voss
h2. CentOS 6: Install the ssh2 extension
17
18
<pre>
19
sudo yum install php-pecl-ssh2
20
</pre>
21
22 1 Amber Herold
23 5 Amber Herold
h2. Test that the module is working:
24 1 Amber Herold
25
# 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
26
# search for the ssh2 module, you should see this section:
27
28 3 Amber Herold
!http://emg.nysbc.org/attachments/220/ssh2box.png!
29 1 Amber Herold
30
h2. Still having problems?
31
32
# 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)