Install SSH module for PHP » History » Revision 6
« Previous |
Revision 6/31
(diff)
| Next »
Neil Voss, 05/27/2010 03:22 PM
Install SSH module for PHP¶
The ssh2 extension for php¶
Name: | Download site: | CentOS package name | Fedora package name | SuSE rpm name |
---|---|---|---|---|
PHP PEAR | http://pear.php.net/ | php-pecl-ssh2 | ||
SSH PECL extension | http://www.php.net/manual/en/ssh2.installation.php | php-pear | php-pear |
For newer systems the extension is available through the repository, e.g., on Fedora 12 type "
sudo yum install php-pecl-ssh2
"
Download and install the ssh2 extension¶
- Go the website http://pecl.php.net/package/ssh2
- Download the latest version of ssh2:
wget http://pecl.php.net/get/ssh2-0.11.0.tgz
- Extract the tar ball
tar zxvf ssh2-0.11.0.tgz
- Go into the directory
cd ssh2-0.11.0
- Run phpize and standard make process
phpize ./configure make
- Download and install the ssh2 extension for php as instructed at its download site:
- http://www.php.net/manual/en/ssh2.installation.php
Install openssl and compile libssh first before compiling php-ssh2 extension. Once you get the final ssh2.so, add it in your php.ini
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
_
< Setup job submission server | Configure web server to submit jobs >
Updated by Neil Voss over 14 years ago · 6 revisions