Powered by Blogger.

Popular Posts

About

Blogroll

Blogger news

Blogger templates

RSS

Pages


Secure Shell2  

Shenojm Keto Komanda

1) yum install automake
2) yum install php-devel
3) yum install libtool
4) yum install openssl-devel
5) yum install gcc++

----------------------------------------------------------------

Instalojme libssh2 ! Hapat ne vijim

Hapi 3 : cd /usr/src
Hapi 4 : wget http://www.libssh2.org/download/libssh2-1.3.0.tar.gz
Hapi 5 : tar -zxf libssh2-1.3.0.tar.gz
Hapi 6 : cd libssh2-1.3.0
Hapi 7 : yum install gcc php-devel php-pear libssh2 libssh2-devel
Hapi 8 : ./configure
Hapi 9 : make all install
Hapi 10 : cd /usr/src
Hapi 11 : rm -Rf libssh2-1.0
Hapi 12 : rm -f libssh2-1.0.tar.gz

----------------------------------------------------------------

Instalojme ssh2 PHP

Hapi 13 : cd /usr/lib64/php
Hapi 14 : wget http://pecl.php.net/get/ssh2-0.11.3.tgz
Hapi 15 : tar -zxf ssh2-0.11.3.tgz
Hapi 16 : cd ssh2-0.11.3
Hapi 17 : phpize && ./configure --with-ssh2 && make
Hapi 18 : cd modules
Hapi 19 : mv ssh2.so /usr/lib64/php/modules
Hapi 20 : cd /usr/lib64/php
Hapi 21 : rm -Rf ssh2-0.11.0
Hapi 22 : rm -f ssh2-0.11.0.tgz

----------------------------------------------------------------

Edit PHP settings

Hapi 23 : touch /etc/php.d/ssh2.ini
Hapi 24 : echo extension=ssh2.so > /etc/php.d/ssh2.ini
Hapi 25 : /etc/init.d/httpd restart
Hapi 26 : php -m | grep ssh2

Edhe Ja SSH2 është instaluar me Sukses !

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comments:

Post a Comment