Search code examples
windowsdlllibssh2

install libssh2.dll on windows


I want to install SSH on my PC (windows 7 64bits). But I have a problem with the installation of libssh2.dll file I saved in: C: \ Windows \ SysWOW64 and even in C: \ Windows \ System32 and when I execute this command "regsvr32 libssh2.dll" in cmd as administrator I get this error message: Libssh2.dll "The module" "was loaded, but the DllRegisterServer entry point was not found.

Verify that "libssh2.dll" is a valid DLL or OCX file and try again. "

I downloaded from this site file: http://windows.php.net/downloads/pecl/releases/ssh2/0.12/ The only good that contains the libssh2.dll is x86 (knowing that I have a 64bits), is what may be causing the problem? If someone knows a solution, please, share it, it is very important that I find a solution as soon as possible and thank you.


Solution

  • You have to put that libssh2.dll somewhere on the %path% so then the PHP extension can find it. Logic were to put it into your PHP dir (if you use the standard zipball from windows.php.net).