downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Configuraţia la rulare> <Necesităţi
Last updated: Fri, 06 Nov 2009

view this page in

Instalarea

Informaţie despre instalarea acestei extensii PECL poate fi găsită în capitolul manualului, întitulat Instalarea extensiilor PECL. Informaţii adiţionale, cum ar fi lansări noi, descărcări, fişiere-sursă, informaţii despre persoana care întreţine extensia şi istoria schimbărilor poate fi localizată aici: » http://pecl.php.net/package/ssh2.

O bibliotecă DLL pentru această extensie PECL nu este disponibilă în prezent. Accesați de asemenea și secțiunea compilarea în Windows.



Configuraţia la rulare> <Necesităţi
Last updated: Fri, 06 Nov 2009
 
add a note add a note User Contributed Notes
Instalarea
adrya dot stembridge at gmail dot com
21-Nov-2008 04:01
Installing ssh2:

1) Download and unpack tar.gz per instructions above.
2) Enter unpacked directory
3) vi patchfile, paste the following (except the ###) and save:

##########################################

--- ssh2.c.orig    2005-11-01 15:40:23.000000000 -0800
+++ ssh2.c    2007-10-05 11:29:50.000000000 -0700
@@ -477,7 +477,7 @@
 
     ZEND_FETCH_RESOURCE(session, LIBSSH2_SESSION*, &zsession, -1, PHP_SSH2_SESSION_RES_NAME, le_ssh2_session);
 
-#if LIBSSH2_APINO < 200412301450
+#if LIBSSH2_VERSION_NUM < 0x001000
     libssh2_session_methods(session, &kex, &hostkey, &crypt_cs, &crypt_sc, &mac_cs, &mac_sc, &comp_cs, &comp_sc, &lang_cs, &lang_sc);
 #else
     kex = libssh2_session_methods(session, LIBSSH2_METHOD_KEX);

##########################################

4) run patch < patchfile
5) vi /etc/php.ini, add extension = ssh2.so where appropriate and save.
6) restart apache, use phpinfo() to confirm
chris at 3menandarecorder dot com
11-Sep-2008 07:28
To help someone avoid the headaches I did for a week. SSH2 functions have problems with the ssh2-beta & libssh2-0.18 even after patching with said patches on the internet.

ssh_exec will work fine
ssh2_shell will not work

In order to use ssh2_shell I had to roll back to libssh2-0.14 in order to get ssh2_shell function to work properly
arie dot mail at gmail dot com
10-Sep-2008 06:56
Just a little note: when compiling this package after modifying the ssh2.c, do not use pecl build as it will not create an ssh2.so file (although it says it succeeded), use:

phpize
./configure --with-ssh2
make

you then need to copy the ssh2.so file into your extension dir if it didn't do so already.
volkirik at yahoo dot com dot tr
08-May-2008 02:33
LIBSSH2_APINO was removed from the public header file. You need to patch ssh2.c to work with new libssh2 versions.

ssh2.c patch:

LINE 480:
search and change following line:
#if LIBSSH2_APINO < 200412301450
...
#else

to:
#if (defined(LIBSSH2_APINO) && LIBSSH2_APINO < 200412301450)
...
#else /* if LIBSSH2_APINO is not defined its v0.14 or higher. no problem! */

LINE 1216:
search and change following line:
#if (LIBSSH2_APINO > 200503221619)

to:
#if (defined(LIBSSH2_APINO) && (LIBSSH2_APINO > 200503221619)) || (defined(LIBSSH2_VERSION_NUM) && LIBSSH2_VERSION_NUM >= 0x001000)

Compile again!

----
Volkan K.

Configuraţia la rulare> <Necesităţi
Last updated: Fri, 06 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites