Web-développeur et Administrateur système Freelance au Luxembourg, j'ai mis en place ce blog pour vous permettre de suivre l'évolution de ma société et partager avec vous quelques lignes de code.
Olivier
web 2.0

Installer l’extension ssh2 dans PHP Gentoo

Pour installer l’extension Pecl ssh2 sous Gentoo, commencez par télécharger l’archive ssh2-0.10.tgz puis une fois décompressée:

phpize && configure –with-ssh2

Modifiez alors le fichier config.h et ajoutez en haut du fichier:

#define LIBSSH2_APINO 200412301450

puis

make et make install

Plus qu’à ajouter l’extension dans /etc/php/cli-php4/php.ini et /etc/php/apache2-php4/php.ini

extension=ssh2.so

et

/etc/init.d/apache2 restart
ssh2-0.10 # php –info | grep ssh2
Registered PHP Streams => php, http, ftp, https, ftps, compress.bzip2, compress.zlib, ssh2.shell, ssh2.exec, ssh2.tunnel, ssh2.scp, ssh2.sftp
ssh2
libssh2 version => 0.18
banner => SSH-2.0-libssh2_0.18
PWD => /usr/local/src/ssh2-0.10
_SERVER["PWD"] => /usr/local/src/ssh2-0.10
_ENV["PWD"] => /usr/local/src/ssh2-0.10

Leave a Reply

This site is using OpenAvatar based on
« Back to text comment