Libssh with PHP 5.3.8

Support/Development for PHP
CrK01
Forum User
Forum User
Posts: 94
Joined: Wed Jun 06, 2007 10:49 am

Libssh with PHP 5.3.8

Unread post by CrK01 »

Hi,

I recently upgraded to php 5.3.8.

The problem is that libssh isn't compiled for that php version:

[root@newlightsystems herramientas]# php -v
PHP Warning: PHP Startup: ssh2: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
PHP 5.3.8 (cli) (built: Aug 26 2011 10:24:47)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
with the ionCube PHP Loader v4.0.5, Copyright (c) 2002-2011, by ionCube Ltd.
with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH

Any site to download correct RPM ?

cat /etc/redhat-release
CentOS release 5.5 (Final)

Thanks,
paulie
Forum User
Forum User
Posts: 76
Joined: Tue Apr 20, 2010 2:49 am

Re: Libssh with PHP 5.3.8

Unread post by paulie »

Apparently ( I say apparently as I haven't followed any of the links) ssh2 is compiled through pecl so the first link from Google should free you from your pickle!

http://www.google.co.uk/search?q=php+li ... =firefox-a
CrK01
Forum User
Forum User
Posts: 94
Joined: Wed Jun 06, 2007 10:49 am

Re: Libssh with PHP 5.3.8

Unread post by CrK01 »

Worked with:

pecl install ssh2 channel://pecl.php.net/ssh2-0.11.3

Regards,
Post Reply