Install SSH module for PHP shared » History » Version 8
Sargis Dallakyan, 11/26/2019 06:29 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 | 7 | Amber Herold | If you have not already done so, install the following prerequisites: |
8 | 1 | Amber Herold | |
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 | 7 | Amber Herold | |SSH PECL extension |http://www.php.net/manual/en/ssh2.installation.php |php-pecl-ssh2|php-pecl-ssh2 | | |
13 | 6 | Amber Herold | |
14 | |||
15 | 4 | Neil Voss | <pre> |
16 | 7 | Amber Herold | sudo yum install php-pecl-ssh2 php-devel libssh2-devel |
17 | 4 | Neil Voss | </pre> |
18 | |||
19 | 1 | Amber Herold | |
20 | 5 | Amber Herold | h2. Test that the module is working: |
21 | 1 | Amber Herold | |
22 | # 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 |
||
23 | # search for the ssh2 module, you should see this section: |
||
24 | |||
25 | 8 | Sargis Dallakyan | !ssh2box.png! |
26 | 1 | Amber Herold | |
27 | h2. Still having problems? |
||
28 | |||
29 | # 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) |