PHP Fatal error: Call to undefined function ssh2_connect()

Hai …iam using php5 which locate in /usr/share/php5/bin/php and when iam trying to connect ssh2_connect iam getting the fatal error in my asterisk server

PHP Fatal error: Call to undefined function ssh2_connect()

And i have already installed ssh2 as well.

$resConnection = ssh2_connect($strServer, $strServerPort); this is the line which iam trying to connect.

Either you didn’t install the right version of SSH2 or your PHP program isn’t including the right libraries.

Thanks …

And in my system iam able to find two php.ini

one is /etc/php.ini

another is in /usr/share/php5/lib/php.ini

and i have installed ssh2 properly…

how to check the php libraries?

should check in which location ?