Project

General

Profile

Actions

Install SSH module for PHP webserver » History » Revision 4

« Previous | Revision 4/5 (diff) | Next »
Amber Herold, 12/16/2013 03:28 PM


Install SSH module for PHP

This installation occurs on the web server.

The ssh2 extension for php

If you have not already done so, install the following prerequisites:

Name: Download site: CentOS yum package name Fedora yum package name SuSE rpm name
php devel http://www.php.net php-devel php-devel
libssh2 devel http://www.libssh2.org libssh2-devel (found in epel repo) libssh2-devel
SSH PECL extension http://www.php.net/manual/en/ssh2.installation.php php-pecl-ssh2 php-pecl-ssh2
sudo yum install php-pecl-ssh2 php-devel libssh2-devel

Test that the module is working:

  1. 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
  2. search for the ssh2 module, you should see this section:

Still having problems?

  1. 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)


< Check PHP information | Install the Web Interface >


Updated by Amber Herold almost 11 years ago · 4 revisions