Project

General

Profile

Install SSH module for PHP » History » Version 6

Neil Voss, 05/27/2010 03:22 PM

1 1 Neil Voss
h1. Install SSH module for PHP
2
3 3 Neil Voss
h2. The ssh2 extension for php
4 1 Neil Voss
5
|_.Name:|_.Download site:|_.CentOS package name|_.Fedora package name|_.SuSE rpm name|
6 5 Neil Voss
|PHP PEAR |http://pear.php.net/ | |php-pecl-ssh2| |
7
|SSH PECL extension |http://www.php.net/manual/en/ssh2.installation.php |php-pear |php-pear | |
8 1 Neil Voss
9
bq. For newer systems the extension is available through the repository, e.g., on Fedora 12 type "@sudo yum install php-pecl-ssh2@"
10
11 3 Neil Voss
h2. Download and install the ssh2 extension
12
13 4 Neil Voss
# Go the website http://pecl.php.net/package/ssh2
14
# Download the latest version of ssh2:<pre>
15
wget http://pecl.php.net/get/ssh2-0.11.0.tgz</pre>
16
# Extract the tar ball<pre>
17 1 Neil Voss
tar zxvf ssh2-0.11.0.tgz</pre>
18 5 Neil Voss
# Go into the directory<pre>
19
cd ssh2-0.11.0</pre>
20 6 Neil Voss
# Run phpize and standard make process<pre>
21
phpize
22
./configure
23
make</pre>
24
25 4 Neil Voss
26 1 Neil Voss
# Download and install the ssh2 extension for php as instructed at its download site:
27
* http://www.php.net/manual/en/ssh2.installation.php
28
    Install openssl and compile libssh first before compiling php-ssh2 extension. Once you get the final ssh2.so, add it in your php.ini
29
30
The extension module is added to php in the same way as does the php-mrc module we distribute for the viewing mrc images through php.  To check whether it worked and for alternative way to make php recognize the module used in newer php, see http://emg.nysbc.org/documentation/leginon/bk02ch04s07.php under the section *Check php information* and *Alternative approach if mrc module does not show up in info.php output*
31
_______
32
33
[[Setup job submission server|< Setup job submission server]] | [[Configure web server to submit jobs|Configure web server to submit jobs >]]
34
35
_______