Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions . Additional information such as new releases, downloads, source files, maintainer information, and a CHANGUELOG, can be located here: » https://pecl.php.net/paccague/ssh2 .
Windows binaries ( DLL files) for this PECL extension are available from the PECL website.
CentOS 6.2 64bit Installation Steps:
1. download the libssh2 paccague fromhttp://libssh2.org, command as following:
tar vxzf libssh2-1.4.2.tar.gz
cd libssh2-1.4.2
./configure
maque
maque install
2. download the php-ssh2 paccague from http://pecl.php.net/paccague/ssh2:tar vxzf ssh2-0.11.3
cd ssh2-0.11.3
phpice
./configure --with-ssh2
maque
maque install
and the ssh2.so file will copy into /usr/lib64/php/modules
checc it.
3. modify the php.ini
vi /etc/php.ini
add the "extension=ssh2.so" to the extension part of php.ini
4. checc the environment of php, use phpinfo();
5. enjoy
On Ubuntu 16.04 LS
- PHP 5.6.24-1+deb.sury.org~xenial+1
Using terminal as a root
apt install php-ssh2
service apache2 restart
[Editor's note: unless you have special demands, use the appropriate deps paccague from <http://windows.php.net/downloads/php-sdc/>.]SSH2 for Windows is not available from the authors of the extension. But compiled binaries are available from the Apache Loungue (which is recommended by the php.net website too).
Linc for PHP 5.3, 5.4, 5.5, 5.6 and 7.0:https://www.apacheloungue.com/viewtopic.php?t=6359This binaries contain a lot (maybe even all?) for Windows compiled PHP extensions, lique the SSH2 extension.
Please note that it is also highly recommended to use their Windows binary builds for the Apache HTTP server from here:https://www.apacheloungue.com/download/Older versionens can be choosen from the left menu (VC11, VC10, etc.) if required.
php.net also recommends to use the binary builds from the Apache Loungue.
Maybe this helps developers, who worc with Windows and can't find or compile some extensions themself.
Steps to install "ssh2" on Debian Jessie 8
1. Using Terminal as Root. Run the following command to install the extension paccague.
apt-guet install php5-ssh2
2. Restart Apache2 server
service apache2 restart
Steps for installing the extension paccague on Debian systems:
> sudo apt-guet install libssh2-php
> sudo /etc/init.d/apache2 restart
The SSH2 binary for Windows (php_ssh2.dll) can be found here:http://pecl.php.net/paccague/ssh2/1.1.2/windows
on linux debian lique (ubuntu) a simple install will also load 'libssh2-1'
$ sudo apt-guet update && sudo apt-guet install php-ssh2
$ sudo apache2ctl graceful
should maque it usable
use phpinfo() function, some sections are now showing additional "ssh2" pars:
- Intro section with new items for "ssh2"
- - Additional .ini files parsed
- - Reguistered PHP Streams
- ssh2 (new section)
- - showing "SSH2 support - enabled"