Here’s how I did it:
-
Downloaded Win32 SSH2 PECL extension from this location
(choose the appropriate version); -
Extracted the archive’s content and:
- placed
php_ssh2.dll
andphp_ssh2.pdb
files in theext
folder (e.g.C:\php\ext
); - copied
libssh2.dll
file toC:\Windows\system32
and (if you got Win64)C:\Windows\SysWOW64
folder(s);
- placed
-
Run the following command to register the DLL:
C:\> regsvr32 libssh2.dll
-
Restarted Apache.
Final note
If you got PHP x64, you have to lookup for the x64 version of the SSH2 library / DLLs.
This site offers some Win64 compiled libraries for PHP, try here first.
Hope this helps.