how to SSH with PHP 5.3.x, where is php_ssh2.dll ?
Posted by: VinceInfo (---.titrisation.com)
Date: January 20, 2011 10:46AM

Hello,

When I've tred to migrate my scripts from PHP 5.2.6 (WampServer 2.0i) to PHP 5.3.5 ( WampServer 2.1e), I have this error message:
"Fatal error: Call to undefined function ssh2_connect() in ..."

This is because the php_ssh2 extension is not longer provided in the PHP package since PHP 5.3.0, and the extension given with PHP 5.2 doesn't work with PHP 5.3.0. (The name of the extension in the doc is "Secure Shell2", short name is "SSH2", it leads on the "libssh2.org" library, and its technical name in the the php.ini file is "php_ssh2.dll" )

The ssh2 extension seems the has been upgraded by the developers of the project ( [pecl.php.net] ). Here is the source code, but unfortunately the compiled extension cannot be found for Windows 32 OS. At least, I haven't found one that is working since now.

Some forums tell that the DLL can be found at [pecl4win.php.net] but in fact this page is not available. It says for a long time: "The pecl4win build box is temporarily out of service. We're preparing a new build system."

Somme versions of the new "php_ssh2.dll for Windows can be found at [downloads.php.net] , but they don't work with WampServer probably because of an incompatible version of the PHP compilation. The files are "php_ssh2-0.11.2-5.3-nts-vc9-x86.zip" and "php_ssh2-0.11.2-5.3-vc9-x86.zip".

The SSH2 extension is good and I haven't found any other PHP extension that performs SSH connexion.
It is now 18 months that PHP 5.3.0 has been released and there is no official solution for this issue.

Do some of your have found the solution?
Can the WampServer team provide the compiled DLL for this extension?

Have a nice days,
Regards,
Vince



Edited 5 time(s). Last edit at 01/20/2011 10:53AM by VinceInfo.

Options: ReplyQuote
Re: how to SSH with PHP 5.3.x, where is php_ssh2.dll ?
Posted by: petercopter (206.223.67.---)
Date: March 02, 2011 10:21PM

I've got the same problem...Any update on the php_ssh2.dll? Thanks

Options: ReplyQuote
Re: how to SSH with PHP 5.3.x, where is php_ssh2.dll ?
Posted by: gamecp (74.102.52.---)
Date: March 03, 2011 04:18PM

I wonder if you have to compile it now like you do php-zip? PHP 5.3 , in my opinion for windows, is not worth much - php-zip and php-ssh are really valuable to have automatically provided by PHP.

I've thought about dropping back to 5.2.x.

Options: ReplyQuote
Re: how to SSH with PHP 5.3.x, where is php_ssh2.dll ?
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: March 03, 2011 08:52PM

whats wrong with the one php_ssh2-0.11.2-5.3-nts-vc9-x86.zip?

this is the one you should be using for wampserver 32bit..

I can compile it for you, but i would need to know whats wrong with this one first. i cant imagine that ill have different results than this file..

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: how to SSH with PHP 5.3.x, where is php_ssh2.dll ?
Posted by: BoereWors (41.54.208.---)
Date: April 06, 2011 08:10PM

Also have the same issue how do you enable this.I'm making a site that purley works with connecting to linux server via ssh.

Options: ReplyQuote
Re: how to SSH with PHP 5.3.x, where is php_ssh2.dll ?
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: April 06, 2011 08:26PM

i did compile this.. but it turned out identical

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: how to SSH with PHP 5.3.x, where is php_ssh2.dll ?
Posted by: interest (---.static.grandenetworks.net)
Date: April 09, 2011 12:21AM

stevenmartin99 Wrote:
-------------------------------------------------------
> i did compile this.. but it turned out identical


Have you tried phpseclib?:

[phpseclib.sourceforge.net]

It's a pure PHP SSH implementation that's more feature packed and a ton more portable than libssh2.

Options: ReplyQuote
Re: how to SSH with PHP 5.3.x, where is php_ssh2.dll ?
Posted by: richrumble (---.hsd1.in.comcast.net)
Date: May 04, 2011 04:04PM

I edited the php_ssh2.dll with a hex editor, can't remember what it was, but was just a version error, so this is a kludge, but it works flawlessly for me.
[xinn.org]
It's again not the best way to do it, but it works for me. GL!
-rich

Options: ReplyQuote
Re: how to SSH with PHP 5.3.x, where is php_ssh2.dll ?
Posted by: genivanss (---.furacao.com.br)
Date: June 09, 2011 09:08PM

I used this solution e solved my problem.


The link is [www.apachefriends.org]



Edited 1 time(s). Last edit at 06/09/2011 09:09PM by genivanss.

Options: ReplyQuote
Re: how to SSH with PHP 5.3.x, where is php_ssh2.dll ?
Posted by: erm3nda (---.Red-80-24-201.staticIP.rima-tde.net)
Date: October 29, 2013 04:11AM

I got same problem with php_ssh2 into wamp2.4, php.5.4.

I have tried the ssh2.dll posted by " richrumble" hosted at xinn but no luck.

Im reading hex data, and triying some values but no lucky again. Do not figure out what i have to change on this: (API20121212,TS,VC9,0.12)

The link is [www.apachefriends.org] IS NOT working.
Have someone a working dll of the php_ssh2.dll ?

Regards.

Options: ReplyQuote


Sorry, only registered users may post in this forum.