Instalando SSH2 [PHP]

Requiere ——–> libssh2-devel-1.1-2.1 libssh2-1-1.1-2.1

1.- Compilando el Modulo

 
 

     #wget http://pecl.php.net/get/ssh2-0.11.0.tgz

     # ls

     ssh2-0.11.0.tgz

     # tar xvf ssh2-0.11.0.tgz

     # rm ssh2-0.11.0.tgz

     # cd ssh2-0.11.0

ssh2-0.11.0 # gedit patchfile —- Pegamos Todo lo de el Parche

ssh2-0.11.0 # patch < patchfile

ssh2-0.11.0 # phpize

ssh2-0.11.0 # ./configure

ssh2-0.11.0 # make

ssh2-0.11.0 # cd modules

    ssh2-0.11.0/modules # ls

    ssh2.la ssh2.so <— Modulo ssh2.so Compilado Correctamente

——————————————————————————-

2.- Instalando el Modulo

 
 

ssh2-0.11.0/modules # cp ssh2.so /usr/lib/php5/extensions/

ssh2-0.11.0/modules # gedit /etc/php5/apache2/php.ini

—> Agregar Linea    extension = ssh2.so —> Salvar ssh2-0.11.0/modules # /etc/init.d/apache2 restart ——————————————————————————- 3.- Probando Modulo

# cd /srv/www/htdocs/ # gedit phpinfo.php

<?php phpinfo(); ?>

 
 

### ### ### ###### ###### ##### PARCHE #### ####### ######### ###############

— ssh2.c.php53    2008-12-14 10:04:22.000000000 +0100

+++ ssh2.c    2008-12-14 10:04:24.000000000 +0100

@@ -48,7 +48,6 @@

#endif

 
 

#ifdef ZEND_ENGINE_2

-static

ZEND_BEGIN_ARG_INFO(php_ssh2_first_arg_force_ref, 0)

ZEND_ARG_PASS_INFO(1)

ZEND_END_ARG_INFO()

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

 
 

System Linux pgsql2 2.6.31.12-0.1-default #1 SMP 2010-01-27 08:20:11 +0100 i686 PHP Version 5.3.1 [TEST]

 
 

      
 

  

Deja un comentario

Fill in your details below or click an icon to log in:

Logo de WordPress.com

You are commenting using your WordPress.com account. Log Out / Cambiar )

Twitter picture

You are commenting using your Twitter account. Log Out / Cambiar )

Facebook photo

You are commenting using your Facebook account. Log Out / Cambiar )

Connecting to %s

Seguir

Get every new post delivered to your Inbox.