The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SSH2 for Apache/PHP ?

Discussion in 'EasyApache' started by prooi, Sep 29, 2009.

  1. prooi

    prooi Member

    Joined:
    Sep 29, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hello .

    Before anybody says anything about the search function, I have tried, and didnt find anything.

    So therefore this thread.

    I am looking for a way to install the SSH2 plugin for apache, as I am going to use it on my website.

    Any suggestions ?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,453
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. prooi

    prooi Member

    Joined:
    Sep 29, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Sorry, but I dont think you got what I asked about :)

    What I wanted, was a way to load the SSH2 module for apache, and not how to set up SSH2, as I am already pretty familiar with this, as this is not first time playing around with linux :)

    The module is called "libssh2", so now we should be clear? ;)
     
  4. cPanelGregK

    cPanelGregK Administrator
    Staff Member

    Joined:
    Sep 8, 2006
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Greetings,

    You can download libssh2 from http://www.libssh2.org/snapshots/libssh2-1.2.1-20091001.tar.gz, untar it, install it via ./configure && make all install

    Then download the pecl-ssh2 installer from http://pecl.php.net/get/ssh2-0.10.tgz

    tar -zxvf ssh2-0.11.0.tgz
    cd ssh2-0.11.0
    phpize && ./configure --with-ssh2 && make

    Then copy ssh2.so to your extension_dir as specified in php.ini.

    grep extension_dir /usr/local/Zend/etc/php.ini
    cp modules/ssh2.so /path/to/extension/dir

    Then add the extension to your php.ini:
    extension=ssh2.so

    Restart httpd, and you should be all set!
     
  5. mail2sacp

    mail2sacp Well-Known Member

    Joined:
    Feb 25, 2007
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    I am trying to configure ssh2 but getting error while make.

    also I did tried to do it using following command but getting error.
    --------
    pecl install ssh2
    Failed to download pecl/ssh2 within preferred state "stable", latest release is version 0.11.0, stability "beta", use "channel://pecl.php.net/ssh2-0.11.0" to install
    install failed
    --------

    How can I make it working.

    I have server with CentOS release 5.3 (Final)

    Waiting for quick reply from you.

    If you want me to open ticket to support than please let us know but please hurry up.

    Regards
    Mail2sacp.
     
  6. Florence

    Florence Registered

    Joined:
    Jan 26, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I was having a lot of problems with the PECL ssh2 module, as well, but apparently you don't even need it, anyway, to enable ssh2 support in PHP. What I did was to use a pure-PHP implementation called phpseclib:

    PHP Secure Communications Library

    Maybe it'll work for you?
     
  7. erick_paper

    erick_paper Well-Known Member

    Joined:
    Apr 19, 2005
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16

    And how do you install this thing? Will it include SSH2 functionality apart from all the other jargon? SSH2 is an industry standard, and tools like Wordpress know how to use it.
     
Loading...

Share This Page