Project

General

Profile

Install SSH module for PHP shared » History » Version 6

Amber Herold, 12/16/2013 02:14 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 6 Amber Herold
h2. Install the ssh2 extension
17 1 Amber Herold
18 6 Amber Herold
If you have not already done so,
19 4 Neil Voss
<pre>
20
sudo yum install php-pecl-ssh2
21
</pre>
22
23 1 Amber Herold
24 5 Amber Herold
h2. Test that the module is working:
25 1 Amber Herold
26
# 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
27
# search for the ssh2 module, you should see this section:
28
29 3 Amber Herold
!http://emg.nysbc.org/attachments/220/ssh2box.png!
30 1 Amber Herold
31
h2. Still having problems?
32
33
# 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)