vonclutch69
22/06/2009, 22h23
Voila, ayant eut beaucoup de mal a mettre a jour tous ca, pour divers panel ^^, je vous met tous ca avec les dernieres version (qui marche)
Pour Debian lenny/etch
Pour la libssh2:
mkdir /home/libssh2
cd /home/libssh2/
wget http://www.libssh2.org/download/libssh2-1.2.4.tar.gz
tar -zxf libssh2-1.2.4.tar.gz
rm libssh2-1.2.4.tar.gz
cd libssh2-1.2.4
./configure && make all install
Voila :)
Pour SSH2:
cd ..
wget http://pecl.php.net/get/ssh2-0.11.0.tgz
tar -zxf ssh2-0.11.0.tgz
rm ssh2-0.11.0.tgz
cd ssh2-0.11.0
phpize && ./configure --with-ssh2 && make
cp /home/ssh2-0.11.0/modules/ssh2.so /usr/lib/php5/*VOTREDOSSIERMODULE*/ssh2.so
echo "extension=ssh2.so" > /etc/php5/apache2/conf.d/ssh2.ini
echo "extension=ssh2.so" > /etc/php5/cli/conf.d/ssh2.ini
On restart appache
/etc/init.d/apache restart
on regarde si il y a un bug :)
on creer un petit php infos
echo "<?php phpinfo(); ?>" >> /var/www/phpinfo.php
ensuite on se rend la -> http://SERVEUR/phpinfo.php
17eme ligne vous aurez:
Register PHP Streams php, file, data, http, ftp, compress.zlib, https, ftps, ssh2.shell, ssh2.exec, ssh2.tunnel, ssh2.scp, ssh2.sftp
Ca veut dire que c'est good :)
N'oubliez pas de faire un petit tour sur www.dedicated-panel.net - Game panel Gratuit
Pour Debian lenny/etch
Pour la libssh2:
mkdir /home/libssh2
cd /home/libssh2/
wget http://www.libssh2.org/download/libssh2-1.2.4.tar.gz
tar -zxf libssh2-1.2.4.tar.gz
rm libssh2-1.2.4.tar.gz
cd libssh2-1.2.4
./configure && make all install
Voila :)
Pour SSH2:
cd ..
wget http://pecl.php.net/get/ssh2-0.11.0.tgz
tar -zxf ssh2-0.11.0.tgz
rm ssh2-0.11.0.tgz
cd ssh2-0.11.0
phpize && ./configure --with-ssh2 && make
cp /home/ssh2-0.11.0/modules/ssh2.so /usr/lib/php5/*VOTREDOSSIERMODULE*/ssh2.so
echo "extension=ssh2.so" > /etc/php5/apache2/conf.d/ssh2.ini
echo "extension=ssh2.so" > /etc/php5/cli/conf.d/ssh2.ini
On restart appache
/etc/init.d/apache restart
on regarde si il y a un bug :)
on creer un petit php infos
echo "<?php phpinfo(); ?>" >> /var/www/phpinfo.php
ensuite on se rend la -> http://SERVEUR/phpinfo.php
17eme ligne vous aurez:
Register PHP Streams php, file, data, http, ftp, compress.zlib, https, ftps, ssh2.shell, ssh2.exec, ssh2.tunnel, ssh2.scp, ssh2.sftp
Ca veut dire que c'est good :)
N'oubliez pas de faire un petit tour sur www.dedicated-panel.net - Game panel Gratuit