BLUEPEPSi

Registered
May 22, 2010
1
0
51
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.
 
Last edited:

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
13
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter

erick_paper

Well-Known Member
Apr 19, 2005
245
0
166
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?