OVH Community, votre nouvel espace communautaire.

[How-To] Installer libssh2 sur Debian 4.0


Kervala
10/11/2011, 19h16
Sur les distributions Debian ou Ubuntu récentes, il existe le package : libssh2-php

harmonyk
20/03/2010, 16h44
Bonjour ! Désolé de deterrer ce topic =)
Merci pour le tutoriel, clair et efficace !
Cependant je rencontre un problème à cette commande :

Code:
phpize && ./configure --with-ssh2 && make
checking ...
checking ...
checking ...
checking ...
/home/libssh2/ssh2-0.11.0/ssh2_fopen_wrappers.c: In function 'php_ssh2_channel_stream_read':
/home/libssh2/ssh2-0.11.0/ssh2_fopen_wrappers.c:49: error: 'LIBSSH2_ERROR_EAGAIN' undeclared (first use in this function)
/home/libssh2/ssh2-0.11.0/ssh2_fopen_wrappers.c:49: error: (Each undeclared identifier is reported only once
/home/libssh2/ssh2-0.11.0/ssh2_fopen_wrappers.c:49: error: for each function it appears in.)
make: *** [ssh2_fopen_wrappers.lo] Erreur 1
Mon dedié est sous lenny, le module ssh2 n'apparait nulle part, j'ai pourtant bien ssh2.so dans le dossier de modules.
Merci d'avance !

|T-OC|Morpheus
26/09/2009, 16h08
Ben ça veut simplement dire que le module n'est pas chargé (raison pour laquelle il ne connait pas la fonction ssh2_conenct() ). Regarde dans les logs si tu as une erreur sur le chargement du module ssh2.so

cowboy
24/09/2009, 19h23
Bonjour , voilà j'ai un soucis dans l'installation . J'ai suivi ce tuto qui m'a amené ici , voici le lien :http://www.tutos-gameserver.fr/mybb/...26-page-1.html , et j'ai une erreur que voici : " Fatal error: Call to undefined function: ssh2_connect() in /homez.167/lffgamin/www/serveur/func/core.php on line 40 " , on me dis que la libssh2 n'est pas installé alors que j'ai correctement suivi le tuto ici présent sans problème ... J'ai même la page test à la fin . Pourriez-vous m'aidez à résoudre ce problème . Merci d'avance .

Papy___
24/08/2009, 09h09
Citation Envoyé par f@b
aptitude install php5-dev
effectivement, encore merci. En faite j'avais déjà installer php5 mysql etc pour mon site donc j'ai pas prêté attention a cette partie.

Bonne journée.

f@b
24/08/2009, 08h35
Citation Envoyé par Papy___
Salut,

Je ne comprends pas, sur mon debian 5.0 Lenny quand je fais la commande

J'ai l'erreur suivante :

pourtant je suis le tuto


aptitude install php5-dev

Papy___
24/08/2009, 08h19
Salut,

Je ne comprends pas, sur mon debian 5.0 Lenny quand je fais la commande
phpize && ./configure --with-ssh2 && make
J'ai l'erreur suivante :
ksxxxxxx/:/home/libssh2/ssh2-0.11.0# phpize && ./configure --with-ssh2 && make -bash: phpize: command not found
pourtant je suis le tuto

totone
07/08/2009, 17h17
nicquel merci
fonctionnel nicquel

f@b
15/05/2009, 17h43
Bonjour,
Je viens de vous faire un petit tuto pour debian lenny, j'espère qu'il fonctionnera pour vous, je pense n'avoir rien oublié


Ce tuto est destiné principalement à debian Lenny
Les lignes précédées d'un # sont des commandes à taper en shell


1 : Si cela n'est pas déjà fait, installer php5 php5-dev ainsi que g++ et make
#aptitude install php5 php5-dev g++ make

2 : installation des librairies libssh 2
#aptitude install libssh2-1-dev

3 : téléchargement des libs PECL
on créé un dossier libssh2 dans /home par exemple et on se place dedant :
#mkdir /home/libssh2
#cd /home/libssh2
#wget http://pecl.php.net/get/ssh2-0.11.0.tgz
#tar xzf ssh2-0.11.0.tgz
#rm ssh2-0.11.0.tgz
#cd ssh2-0.11.0/

4 : compilation et installation
#phpize && ./configure --with-ssh2 && make

5 : copie de ssh2.so dans le dossier des extensions php
#cd modules
#cp ssh2.so /usr/lib/php5/20060613+lfs/

6 : ajout de l'extension dans php.ini
#echo "extension=ssh2.so" >> /etc/php5/apache2/php.ini

7 : redémarrage d'apache2
#/etc/init.d/apache2 restart

8 : test
Pour tester, deux possibilités
8:1 un fichier php avec
8:2 un fichier php qui se connecte en ssh, en voici un exemple :
if($connexion=ssh2_connect("ip", 22))
{
if(ssh2_auth_password($connexion,"user","password" ))
{
echo "vous êtes connecté !
";
//ssh2_exec($connexion,"ma commande");
}
else
{
echo "Impossible de se connecter avec le nom d'utilisateur et le mot de pass.
";
}
}
else
{
echo "Impossible d'établir une connexion ssh. Ca décone !";
}
?>

arowan
13/05/2009, 14h44
Citation Envoyé par foxyfox
-bash: make: command not found
sa va j'ai rien dit même pas capable de lire ce que me dit ma console

foxyfox
13/05/2009, 14h36
-bash: make: command not found

arowan
13/05/2009, 14h34
hum et pour lenny on fait comment ?
debian: /home/libssh2/ssh2-0.10# phpize && ./configure --with-ssh2 && make
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
checking for PHP extension directory... /usr/lib/php5/20060613+lfs
checking for PHP installed headers prefix... /usr/include/php5
checking for re2c... no
configure: WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for ssh2 support... yes, shared
checking for ssh2 files in default path... not found
configure: error: The required libssh2 library was not found. You can obtain that package from http://sourceforge.net/projects/libssh2/
debian:/home/libssh2/ssh2-0.10# cd ..
debian:/home/libssh2# cd cd libssh2
-bash: cd: cd: Aucun fichier ou répertoire de ce type
debian:/home/libssh2# cd libssh2
-bash: cd: libssh2: Aucun fichier ou répertoire de ce type
debian:/home/libssh2# cd libssh2-0.14
debian:/home/libssh2/libssh2-0.14# ./configure && make all install
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for socket in -lsocket... no
checking for ceil in -lm... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... no
checking for ranlib... ranlib
checking whether byte ordering is bigendian... no
checking for pkg-config... /usr/bin/pkg-config
checking for OpenSSL... Using paths from pkg-config
checking for libz... Found in /usr/include /usr/lib
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for poll... no
checking for gettimeofday... no
checking for select... no
checking for an ANSI C-conforming const... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/libssh2_config.h
config.status: include/libssh2_config.h is unchanged
-bash: make: command not found
Lenny 32 bits ;p

Spawny
05/09/2008, 14h50
De rien

bmo
03/09/2008, 19h21
Superbe Tuto et efficace.
Merci !

bmo

papykun
29/08/2008, 18h50
vais retester avec ce lien car le tuto semble ne pas avoir fonctionner, alors que l ai fais une fois sans souci...

Spawny
29/08/2008, 14h05
Citation Envoyé par papykun
Souci : impossible de dl sur http://kent.dl.sourceforge.net/sourc...h2-0.14.tar.gz

Quelqu un a un autre lien j en trouve pas :/

edit : trouvé ^^
http://ovh.dl.sourceforge.net/source...h2-0.14.tar.gz

papykun
29/08/2008, 03h36
Souci : impossible de dl sur http://kent.dl.sourceforge.net/sourc...h2-0.14.tar.gz

Quelqu un a un autre lien j en trouve pas :/

edit : trouvé ^^

moldu
13/08/2008, 19h34
Citation Envoyé par alexis57
Si il faut tout ça, comment sont fais les interfaces web ??? ( Sabnzbd, phpmyadmin etc... ? ) alors qu'elles ne demandent pas apache.
Les interfaces web, c'est pas vraiment compliqué. Ce sont de simples page php contenant des commandes spécifiques pour donner des commandes.

arowan
12/08/2008, 20h19
encore une fois install qui s'est déroulée avec succès

alexis57
12/08/2008, 17h06
Si il faut tout ça, comment sont fais les interfaces web ??? ( Sabnzbd, phpmyadmin etc... ? ) alors qu'elles ne demandent pas apache.

papykun
29/07/2008, 23h28
Testé a l instant sous debian 4, marche nickel

InboX
28/07/2008, 15h53
Re,

toujours pareil
Je vais revenir sur Centos je pense que c'est le mieux
sur Centos je l'ai fait marcher sans problème et sur debian non je comprend pas trop
m'enfin c'est pas grave je vais attendre le bon de commande de Ovh pour le renouvellement du serveur et je réinstall tout apres.

Merci quand meme

kenek
28/07/2008, 14h46
Il ne me semble pas avoir eu autant de warning lors de l'installation. En tous cas lances un phpinfo() et normalement tu doit avoir une partie avec SSH2 avec le numéro de version et toutes les options en "enabled".

InboX
28/07/2008, 13h27
Re,

L'installation de libssh2 se fini comme ceci

./configure && make all install

in signedness
gcc -o session.o session.c -c -g -O2 -I/usr/include -I/usr/include -Wall -I../include/ -fPIC
session.c: In function 'libssh2_banner_send':
session.c:167: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
session.c:168: warning: pointer targets in assignment differ in signedness
session.c: In function 'libssh2_session_startup':
session.c:363: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
session.c:363: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
session.c:363: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
session.c:363: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
session.c:363: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
session.c:363: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
session.c:363: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
session.c:363: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness
gcc -o sftp.o sftp.c -c -g -O2 -I/usr/include -I/usr/include -Wall -I../include/ -fPIC
sftp.c: In function 'libssh2_sftp_packet_read':
sftp.c:169: warning: pointer targets in passing argument 3 of 'libssh2_channel_read_ex' differ in signedness
sftp.c:175: warning: pointer targets in passing argument 3 of 'libssh2_channel_read_ex' differ in signedness
sftp.c:180: warning: pointer targets in passing argument 3 of 'libssh2_channel_read_ex' differ in signedness
sftp.c:202: warning: pointer targets in passing argument 3 of 'libssh2_channel_read_ex' differ in signedness
sftp.c: In function 'libssh2_sftp_packet_ask':
sftp.c:249: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sftp.c:249: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sftp.c:249: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sftp.c:249: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sftp.c:249: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sftp.c:249: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
sftp.c:249: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sftp.c:249: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sftp.c:249: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
sftp.c:249: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sftp.c:249: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sftp.c:249: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
sftp.c:249: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sftp.c:249: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
sftp.c:249: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness
sftp.c:249: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness
sftp.c: In function 'libssh2_sftp_init':
sftp.c:490: warning: pointer targets in passing argument 3 of 'libssh2_channel_write_ex' differ in signedness
sftp.c:526: warning: pointer targets in assignment differ in signedness
sftp.c:529: warning: pointer targets in assignment differ in signedness
sftp.c: In function 'libssh2_sftp_open_ex':
sftp.c:592: warning: pointer targets in passing argument 3 of 'libssh2_channel_write_ex' differ in signedness
sftp.c: In function 'libssh2_sftp_read':
sftp.c:683: warning: pointer targets in passing argument 3 of 'libssh2_channel_write_ex' differ in signedness
sftp.c: In function 'libssh2_sftp_readdir':
sftp.c:735: warning: pointer targets in initialization differ in signedness
sftp.c:752: warning: pointer targets in assignment differ in signedness
sftp.c:778: warning: pointer targets in passing argument 3 of 'libssh2_channel_write_ex' differ in signedness
sftp.c:833: warning: pointer targets in assignment differ in signedness
sftp.c: In function 'libssh2_sftp_write':
sftp.c:871: warning: pointer targets in passing argument 3 of 'libssh2_channel_write_ex' differ in signedness
sftp.c: In function 'libssh2_sftp_fstat_ex':
sftp.c:930: warning: pointer targets in passing argument 3 of 'libssh2_channel_write_ex' differ in signedness
sftp.c: In function 'libssh2_sftp_close_handle':
sftp.c:1010: warning: pointer targets in passing argument 3 of 'libssh2_channel_write_ex' differ in signedness
sftp.c: In function 'libssh2_sftp_unlink_ex':
sftp.c:1081: warning: pointer targets in passing argument 3 of 'libssh2_channel_write_ex' differ in signedness
sftp.c: In function 'libssh2_sftp_rename_ex':
sftp.c:1148: warning: pointer targets in passing argument 3 of 'libssh2_channel_write_ex' differ in signedness
sftp.c: In function 'libssh2_sftp_mkdir_ex':
sftp.c:1219: warning: pointer targets in passing argument 3 of 'libssh2_channel_write_ex' differ in signedness
sftp.c: In function 'libssh2_sftp_rmdir_ex':
sftp.c:1271: warning: pointer targets in passing argument 3 of 'libssh2_channel_write_ex' differ in signedness
sftp.c: In function 'libssh2_sftp_stat_ex':
sftp.c:1338: warning: pointer targets in passing argument 3 of 'libssh2_channel_write_ex' differ in signedness
sftp.c: In function 'libssh2_sftp_symlink_ex':
sftp.c:1422: warning: pointer targets in passing argument 3 of 'libssh2_channel_write_ex' differ in signedness
gcc -o userauth.o userauth.c -c -g -O2 -I/usr/include -I/usr/include -Wall -I../include/ -fPIC
userauth.c: In function 'libssh2_userauth_list':
userauth.c:102: warning: pointer targets in return differ in signedness
userauth.c: In function 'libssh2_file_read_publickey':
userauth.c:291: warning: pointer targets in assignment differ in signedness
userauth.c:306: warning: pointer targets in assignment differ in signedness
userauth.c: In function 'libssh2_file_read_privatekey':
userauth.c:340: warning: pointer targets in passing argument 2 of '(*hostkey_method)->initPEM' differ in signedness
userauth.c:340: warning: pointer targets in passing argument 3 of '(*hostkey_method)->initPEM' differ in signedness
userauth.c: In function 'libssh2_userauth_hostbased_fromfile_ex':
userauth.c:400: warning: pointer targets in passing argument 4 of 'libssh2_file_read_privatekey' differ in signedness
userauth.c: In function 'libssh2_userauth_publickey_fromfile_ex':
userauth.c:571: warning: pointer targets in passing argument 4 of 'libssh2_file_read_privatekey' differ in signedness
gcc -o libssh2.so -shared -lm channel.o comp.o crypt.o hostkey.o kex.o mac.o misc.o packet.o publickey.o scp.o session.o sftp.o userauth.o -L/usr/lib -lcrypto -L/usr/lib -lz
make[1]: quittant le répertoire « /root/source/libssh2-0.14/src »
./mkinstalldirs /usr/local/include
./mkinstalldirs /usr/local/lib
make[1]: entrant dans le répertoire « /root/source/libssh2-0.14/src »
/usr/bin/install -c libssh2.so /usr/local/lib
make[1]: quittant le répertoire « /root/source/libssh2-0.14/src »
/usr/bin/install -c -m 644 include/libssh2.h /usr/local/include/
/usr/bin/install -c -m 644 include/libssh2_sftp.h /usr/local/include/
/usr/bin/install -c -m 644 include/libssh2_publickey.h /usr/local/include/
Erreur ? j'ai un Warning mais je ne vois pas du tout.

Cordialement,

kenek
28/07/2008, 13h20
Inbox recommence l'installation et fait bien attention a ce qu'il n'y est pas la moindre erreur lors des phases de compilation et d'installation. J'avais eu ce problème moi aussi.

PS: Je n'ai toujours pas trouvé la solution à mon problème.

InboX
28/07/2008, 12h34
Bonjour,

Oui
dans modules j'ai placer le fichier
et j'ai fait un echo sur mes deux fichiers php.ini

echo "extension=ssh2.so" >> /usr/local/psa/admin/conf/php.ini
echo "extension=ssh2.so" >> /etc/php.ini
mais ca ne change rien

cordialement,

foxyfox
28/07/2008, 12h20
As-tu ajouté le chargement de la lib dans ton php.ini ?

InboX
28/07/2008, 11h58
Salut,

Moi pareil tres bon Tuto
aucune erreur a l'installation des programmes
mais sur mes scripts voila l'erreur

Fatal error: Call to undefined function: ssh2_connect()
dans mon phpinfo j'ai pas le module qui s'affiche
sur mon ancien dédié sur centos ca marcher tres bien et la plus rien sur Debian 4.0

Cordialement,

kenek
28/07/2008, 11h53
Bon tutoriel ça marche sans problème.
Cependant, ce que je ne comprend pas c'est que ça marche très bien en exécutant un script php par un browser web, mais dés lors que j'essaye de le lancer en ligne de commande j'ai droit à une erreur php "Call to undefined function ssh2_connect()". J'ai l'impression que la version de php utilisé par le browser et par la ligne de commande n'est pas la même.

Merci,

mimo007
19/07/2008, 19h14
Citation Envoyé par J@r0d
Oui, sur une ETCH4 de base il manque des package pour faire l'installation, il faut installer les packages suivant:
aptitude install autoconf
aptitude install automake
aptitude install libtool
Citation Envoyé par Radeon
change ta ligne aptitude g++-3.4 make par apt-get install g++-3.4 make
Genial ton tuto il a marché apres avoir fait l'oppération deux fois, merci pour tout.

Pour le reste, j'ai fait que lire les commentaire de J@rod et Raedon

madrippeur
29/06/2008, 11h07
Bonjour à vous !

Je viens de suivre à la lettre ce how to super clair et rapide.
Tout se passe extrêmement bien , aucun message d'erreur, rien !
Malheureusement aux vues de mon phpinfo ... je dois dire que cela ne fonctionne pas pour moi

Je suis sur debian etch, (PHP Version 5.2.6-0.dotdeb.1) auriez vous un peu d'aide à me fournir ?
Je ne sais pas quoi vous fournir de plus comme explications, tout c'est vraiment très bien passé

|T-OC|Morpheus
21/03/2008, 17h51
Pour info simplement :

J'ai réussi à l'installer sur mon serveur Debian 4.0 avec Apache2 et PHP4 (en changeant les chemins php5 par php4), juste le fichier de configuration était /etc/php4/cgi/php.ini pour ma part (merci phpinfo, au début j'ai suivi le tuto à la lettre ^^).

Quelques warnings à la compilation aussi, mais vu le peu de fonctions que j'utilise, je ne sais pas encore si ça influe sur le fonctionnement normal du module. A voir quand j'utiliserais les fonctions de clé partagée...

DeathSign
19/02/2008, 18h24
J'en ai rien à foutre de vos dédiés, puis démerdes toi :P

Rorox
19/02/2008, 18h06
tien un lamer qui essaye de voler des dediers ... tu croit qu'ont va te faire confiance alors que t'ai nouveau sur le forum ? xD


Sinon personne à la solution à mon ptit soucis ? :/

DeathSign
19/02/2008, 15h10
Bonjour pour celles et ceux qui peinent trop à l'installation de cette lib vous pouvez me contacter par mail, je peux aider à le faire.

EDIT: Bon je retire tout ce que je dis, je pensais pas aux vols, je vous laisse vous débrouiller et je ne dis plus rien puisque tout sera retourné contre moi. Bravo.

Rorox
18/02/2008, 23h30
Up please !

Rorox
15/02/2008, 19h51
Oui sa je sais mais j'ai besion de SSH2 dans le registered Stream

Regarde cette image ( friipanel )
http://project.muse-gaming.org/screenshot/t_phpinfo.jpg

et regarde ma page, il me manque les trucs

j'ai recommencer l'install 3X sans succès

Spawny
15/02/2008, 00h10
ba si : regarde dans ton phpinfo :
libssh2 version 0.14
banner SSH-2.0-libssh2_0.14
remote forwarding enabled
hostbased auth enabled
polling support enabled
publickey subsystem enabled

Rorox
14/02/2008, 18h50
salut à tous,

désoler si je remonte un vieux topic mais chez moi cela ne fonctionne pas, sa l'install bien mais il n'apparait pas dans phpinfo

http://91.121.109.11/phpinfo-test.php

Svp aidez moi ! j'ai bien mis ssh2.so dans le bon dossier et tout

Radeon
17/11/2007, 09h47
change ta ligne aptitude g++-3.4 make par apt-get install g++-3.4 make

ricardman
20/10/2007, 08h57
Salut , quand je lance la commande
aptitude install autoconf ou phpize && ./configure --with-ssh2 && make

J'ai le message d'erreur
dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

Que dois je faire ?la 1 er fois que j ai installer libssh , j ai pas eu ce probleme et la j ai reinstalle mon szerveur et depuis j 'ai ce message ?

Spawny
17/07/2007, 12h42
Citation Envoyé par J@r0d
Sans ces packages la commande phpize ne donnait rien, peut etre les avait tu installé avant, a savoir que mon etch4 provient d'une migraiton 3>4
A ok c'est surement pour ça, parce que moi je suis parti d'une debian 4.0 d'origine.

J@r0d
17/07/2007, 12h28
Sans ces packages la commande phpize ne donnait rien, peut etre les avait tu installé avant, a savoir que mon etch4 provient d'une migraiton 3>4

Spawny
17/07/2007, 10h29
c'est bizarre parce que sur mon dédié avec debian 4.0 etch j'ai pas eu besoin de les installer ces packages

Par contre sur mon serveur @ home qui est sous debian 4.0 etch, là j'ai eu besoin d'installer gcc et make, mais pas les librairies que tu cites.

J@r0d
16/07/2007, 16h37
Oui, sur une ETCH4 de base il manque des package pour faire l'installation, il faut installer les packages suivant:

aptitude install autoconf
aptitude install automake
aptitude install libtool

Spawny
16/07/2007, 13h45
pour ceux qui l'on installé donné moi des retours, avez vous rencontré des
problèmes ?



16/07/2007, 13h00
pas con le spawny lol ^^
"Spawny" a écrit dans le message de
news: Spawny.2tt7sb@no-mx.forums.ovh.com...
>
> c'est pour ça que je mit la 0.14 dans mon tuto ^^
>
>
> --
> Spawny
> ------------------------------------------------------------------------
> Spawny's Profile: http://forum.ovh.com/member.php?userid=13289
> View this thread: http://forum.ovh.com/showthread.php?t=18438
>




Spawny
16/07/2007, 12h40
pas con le spawny ^^
"Spawny" a écrit dans le message de
news: Spawny.2tt7sb@no-mx.forums.ovh.com...
>
> c'est pour ça que je mit la 0.14 dans mon tuto ^^
>
>
> --
> Spawny
> ------------------------------------------------------------------------
> Spawny's Profile: http://forum.ovh.com/member.php?userid=13289
> View this thread: http://forum.ovh.com/showthread.php?t=18438
>




Spawny
16/07/2007, 12h30
c'est pour ça que je mit la 0.14 dans mon tuto ^^

The Destroyeur
16/07/2007, 11h27
N'oublié pas que la version 0.15 ne marche pas !!

Spawny
16/07/2007, 00h52
merci ça fait plaisir d'entendre ça que tu ais pu réussir en 5 mins

Julia41
15/07/2007, 20h47
Ah marche nikel après moultes et moultes tutos testé... Enfin un propre, clair et rapide... En 5 minutes testé Et en 1 minutes approuvé

Spawny
14/07/2007, 13h05
je pense que cela pourra en aider certains

The Destroyeur
14/07/2007, 12h58
Gg :d

Spawny
14/07/2007, 12h11
Voici un tuto qui complète celui de The Destoyeur à propos de la fameuse et fabuleuse librairie libssh2 pour php.

Je part d'une installation de debian 4.0 toute fraîche:

Allez c'est parti :

-se loguer en root avec putty ( ça c'est facile )
-on met à jour les paquetages :
Code:
apt-get update
apt-get upgrade
-comme l'installation est toute fraiche on install ce qu'il faut pour que libssh fonctionne :
Code:
aptitude install apache2 php5 php5-dev openssl libssl-dev
-il vous faut aussi gcc et make mais normalement ils sont installés sur debian 4.0 s'il ne sont pas présent exécuté
Code:
aptitude g++-3.4 make
-on se place dans un répertoire de travail
Code:
cd /home
mkdir libssh2
cd libssh2
-on télécharge libssh2
Code:
wget http://ovh.dl.sourceforge.net/sourceforge/libssh2/libssh2-0.14.tar.gz
-on décompresse l'archive
Code:
tar -xzvf libssh2-0.14.tar.gz
-on se place dans le répertoire de libssh2
Code:
cd libssh2-0.14
-on compile
Code:
./configure && make all install
-on reviens dans /home/libssh2
Code:
cd ..
-on télécharge ssh2
Code:
wget http://pecl.php.net/get/ssh2-0.10.tgz
-on décompresse
Code:
tar -xzvf ssh2-0.10.tgz
puis
Code:
cd ssh2-0.10
-on compile ssh2
Code:
phpize && ./configure --with-ssh2 && make
-à ce stade NORMALEMENT, vous avez un fichier nommé ssh2.so dans /home/libssh2/ssh2-0.10/modules
-copié le dans le répertoire de vos extensions php5 ( chez moi c'est /usr/lib/php5/20060613+lfs )
-puis activez la librairie ssh2.so dans votre php.ini
Code:
echo "extension=ssh2.so" >> /etc/php5/apache2/php.ini
-on redémarre apache2 pour appliquer les paramétres
Code:
/etc/init.d/apache2 restart
-puis on se créée une page de type phpinfo
Code:
echo "" >> /var/www/phpinfo-test.php
Contemplé votre résultat sur http://votre-ip/phpinfo-test.php