views:

1137

answers:

1

I had PHP 5.2.2 installed on a previous box (also WinXP Pro sp3) and had gotten the SSH2 extension from http://pecl4win.php.net/ext.php/php_ssh2.dll. Sadly that server seems to be out of commission for now ("The pecl4win build box is temporarily out of service. We're preparing a new build system."). The old DLL doesn't work with the new PHP, of course. I don't have MS Visual Studio.

Anyone have any idea where I can get this file for PHP 5.3.1? Or perhaps I should just roll back to PHP 5.2.2...

Thx for yr help.

Update: I should have mentioned I'm using XAMPP 1.7.3, which has Apache 2.2. So I need DLL's compiled with VC6.

A: 

There are two versions of lib_ssh2 on http://downloads.php.net/pierre/ :

  • php_ssh2-svn20091128-5.3-nts-vc9-x86.zip
  • php_ssh2-svn20091128-5.3-vc9-x86.zip

Those are VC9 versions, which means they should not be used with binaries from Apache.org (I suppose they are for IIS ? see the left column of http://windows.php.net/ about VC6 vs VC9 ) ; you didn't say which web-server you were using, so maybe...


(I didn't provide the direct links on purpose : those might get outdated quickly, and I didn't want that for an answer on SO)

Pascal MARTIN
Thx Pascal. I'm using Apache 2.2. Part of XAMPP (which I now notice I didn't list in my original post. Sorry about that.)I followed your link to http://windows.php.net and did download the two DLL's, just in case. Here's what I got when restarting Apache:>>>PHP Startup: ssh2: Unable to initialize moduleModule compiled with build ID=API20090626,TS,VC9PHP compiled with buildID=API20090626,TS,VC6These options must match<<<Oooh! So close!
NotoriousWebmaster
Ho, too bad :-( ;; still : good luck !
Pascal MARTIN