Problem Installing SSH2
I want to install ssh2
I use php 5.3.x, lsws (latest), cpanel (latest)
I was installed it and I can see
ssh2.shell, ssh2.exec, ssh2.tunnel, ssh2.scp, ssh2.sftp in Registered PHP Streams part of phpinfo()
But there is not any section like this :
I was installed ssh2 & libssh2 on another apache server and it work well
Current error for lsws server is :
Warning: ssh2_connect() [function.ssh2-connect]: Unable to connect to x.x.x.x on port 22 in /home/user/public_html/ssh.php on line 5
port 22 is open!
hmm... the document is here:
have you built ssh2.so and put
in php.ini ?
for how to build ssh2.so for lsphp, please refer
it's same steps to build apc.so
I was compiled libssh2
ssh2.so was added to php.ini automatically (same php.ini located in phpinfo)
Is it possible to install ssh2 with lsws :)
I'll try on our lab. but will be tomorrow. Sorry for have you wait.
Would phpseclib, a pure PHP SSH2 implementation work for you?
Sorry for late, succeeded to build ssh2 on lsphp-5.3.27 without surprise.
I built it in a x86 box. the steps just FYI:
#yum install libssh2-devel.i386
#yum install openssl-devel.i386
following steps same as you:
./configure --with-ssh2 --with-php-config=/usr/local/lsws/lsphp5/bin/php-config
however, it may not have any difference
when access phpinfo page, the ssh2 section is there:
extension version 0.12
libssh2 version 1.2.9
|All times are GMT -7. The time now is 04:32 AM.|