How to install ssh2 PHP extension from Windows?

Though the question says about ssh2, does this apply to any additional PHP module? How should anyone install or compile additional PHP modules in Windows? Below is the topic where Clay describes how to install it on a Mac, but I am searching for information on how to do the same on Windows.

Hi @rajinsharwar

We don’t have any specific steps or documentation to provide. The process would be fairly involved as well to give fair warning.

You can find the official steps for Windows linked here:

You may want to use the standalone extension route rather than compiling the extension into php, but it’s not something I’ve tried for Windows.

Worth mentioning here that for ssh2, there’s a pure-PHP lib that may be easier than adding the ssh2 C extension:

1 Like