Problem in activating ssh2 module and php.

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
nissim
Forum Newbie
Posts: 2
Joined: Tue Jun 16, 2009 2:47 am

Problem in activating ssh2 module and php.

Post by nissim »

Hello,

I am running php version: 5.2.5

compiled libssh2 version:0.14

& installed ssh2 module version:0.10


I restarted my compiled apache version 2.2.8 to activate the module and tried to run an example ssh2 script to test if its working but it doesn't work and the scripts claims it can't find ssh2_connect method.


my php.ini is located at /usr/local/lib/ .
In my php.ini I added: extension=ssh2.so

my php is installed at /usr/local/php-5.2.5
my libssh2.so is located at /usr/local/lib/libssh2.so

my ssh2.so is located at: /usr/local/php-5.2.5/lib/php/extensions/no-debug-non-zts-20060613/


The script I am tring to run is taken from:
http://kevin.vanzonneveld.net/techblog/ ... _with_php/

Can anyone assist in resolving that issue, it looks like I am missing something here.

I read several times the php ssh2 installation documentation but without success.

Thank you very much.

Nissim.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Problem in activating ssh2 module and php.

Post by Christopher »

Does libssh2 require that you have a current version of openssh installed?
(#10850)
nissim
Forum Newbie
Posts: 2
Joined: Tue Jun 16, 2009 2:47 am

Re: Problem in activating ssh2 module and php.

Post by nissim »

I do have openssh installed on the machine but I don't remember anyone mentioned it as prerequisite.


anyway I am still looking for an answer to my problem.
Post Reply