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.

libssh2 extension

Discussion in 'General Discussion' started by BLUEPEPSi, May 22, 2010.

  1. BLUEPEPSi

    BLUEPEPSi Registered

    Joined:
    May 22, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hello everyone,

    I would like to install php ssh2 extension so I can run a game server panel on my VPS. The only problem is that the most of the tutorials I see aren't suited for VPS, because when a package needs to be downloaded such as "yum install libssh2" or something, it does not work. www.libssh2.org is also down for me, so I can not access it.

    All I need to do is install SSH2 PHP extension the easiest way I can. Whether it is through WHM or just SSH

    I am running Centos 5, apache2, php5.

    Thanks.
     
    #1 BLUEPEPSi, May 22, 2010
    Last edited: May 22, 2010
  2. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bucharest
    From manual PHP: Requirements - Manual , you need both openssl and ssh2 libraries. Try:

    yum install libssh2-devel openssl-devel
     
  3. erick_paper

    erick_paper Well-Known Member

    Joined:
    Apr 19, 2005
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    Is there any update to this? "No package libssh2-devel available" is what I see.
     
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    The packages libssh2 and libssh2-devel are available from third-party OS update repositories used by YUM, such as EPEL (Extra Packages for Enterprise Linux). You would need to match your RHEL or CentOS version to the appropriate EPEL release; please refer to the official EPEL web site for documentation and usage information: EPEL/FAQ - FedoraProject
     
  5. erick_paper

    erick_paper Well-Known Member

    Joined:
    Apr 19, 2005
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    Is there any better help for this?

    I am trying to install PECL SSH2:


    Code:
    ~ > pecl install channel://pecl.php.net/ssh2-0.11.0
    WARNING: channel "pear.php.net" has updated its protocols, use "pecl channel-update pear.php.net" to update
    downloading ssh2-0.11.0.tgz ...
    Starting to download ssh2-0.11.0.tgz (22,884 bytes)
    ........done: 22,884 bytes
    5 source files, building
    running: phpize
    Configuring for:
    PHP Api Version:         20041225
    Zend Module Api No:      20060613
    Zend Extension Api No:   220060519
    libssh2 prefix? [/usr] : [B]/usr/local/lib/libssh2.so
    [/B]building in /var/tmp/pear-build-root/ssh2-0.11.0
    running: /root/tmp/pear/cache/ssh2-0.11.0/configure --with-ssh2=/usr/local/lib/libssh2.so
    checking for egrep... grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking for cc... cc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... configure: error: cannot run C compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details.
    ERROR: `/root/tmp/pear/cache/ssh2-0.11.0/configure --with-ssh2=/usr/local/lib/libssh2.so' failed
    

    What's the problem here? Where is libssh2?
     
Loading...

Share This Page