Project

General

Profile

Install SSH module for PHP » History » Version 10

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

1 1 Neil Voss
h1. Install SSH module for PHP
2
3 10 Neil Voss
This installation occurs on the web server.
4
5 3 Neil Voss
h2. The ssh2 extension for php
6 1 Neil Voss
7 7 Neil Voss
|_.Name:|_.Download site:|_.CentOS yum package name|_.Fedora yum package name|_.SuSE rpm name|
8 8 Neil Voss
|re2c |http://re2c.org/ |re2c |re2c | |
9 7 Neil Voss
|php devel |http://pear.php.net/ |php-devel |php-devel| |
10
|libssh2 devel |http://pear.php.net/ |libssh2-devel |libssh2-devel| |
11 5 Neil Voss
|SSH PECL extension |http://www.php.net/manual/en/ssh2.installation.php |php-pear |php-pear | |
12 1 Neil Voss
13
bq. For newer systems the extension is available through the repository, e.g., on Fedora 12 type "@sudo yum install php-pecl-ssh2@"
14
15 8 Neil Voss
h2. Download and compile the ssh2 extension
16 3 Neil Voss
17 9 Neil Voss
bq. See http://www.php.net/manual/en/ssh2.installation.php for more information
18
19 4 Neil Voss
# Go the website http://pecl.php.net/package/ssh2
20
# Download the latest version of ssh2:<pre>
21
wget http://pecl.php.net/get/ssh2-0.11.0.tgz</pre>
22
# Extract the tar ball<pre>
23 1 Neil Voss
tar zxvf ssh2-0.11.0.tgz</pre>
24 5 Neil Voss
# Go into the directory<pre>
25
cd ssh2-0.11.0</pre>
26 6 Neil Voss
# Run phpize and standard make process<pre>
27
phpize
28
./configure
29 1 Neil Voss
make</pre>
30 10 Neil Voss
# Install the module:<pre>
31 1 Neil Voss
sudo make install</pre>
32 10 Neil Voss
# Restart httpd:<pre>
33
sudo /sbin/service httpd restart</pre>
34 1 Neil Voss
35
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*
36
_______
37
38
[[Setup job submission server|< Setup job submission server]] | [[Configure web server to submit jobs|Configure web server to submit jobs >]]
39
40
_______