Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Need php_ssh2.dll for PHP 8.2.29, x64, TS, VC16 |
|
| Author |
|
DavidSpector
Joined: 07 Oct 2017 Posts: 19 Location: Maine, USA
|
Posted: Thu 25 Dec '25 18:53 Post subject: Need php_ssh2.dll for PHP 8.2.29, x64, TS, VC16 |
|
|
Can anyone give me a lead on getting a php_ssh2.dll file for PHP 8.2.29, x64, TS, VC16, and Windows, please?
I am so sorry PHP decided to use DLLs in its extensions. It just doesn't scale up to all the combinations of ways to compile PHP. |
|
| Back to top |
|
DavidSpector
Joined: 07 Oct 2017 Posts: 19 Location: Maine, USA
|
|
| Back to top |
|
DavidSpector
Joined: 07 Oct 2017 Posts: 19 Location: Maine, USA
|
Posted: Thu 25 Dec '25 20:14 Post subject: Didn't work. |
|
|
| This dll didn't work. And, like others, it was only 67 kb long, hardly enough for a DLL. So strange. Can anyone help? |
|
| Back to top |
|
DavidSpector
Joined: 07 Oct 2017 Posts: 19 Location: Maine, USA
|
Posted: Fri 26 Dec '25 12:26 Post subject: [Solved] Explanation about the ssh2 library for Windows |
|
|
I have found out that PHP is mainly installed on Linux using command-line tools that take care of all aspects of installation.
Windows users have some resources available: to install PHP correctly, download the initial files from https://windows.php.net/download/ . Because PHP uses binary extension files, you must select your PHP download using all this context data: the name and version of the compiler used to compile the extension (such as VS16), the short name of the target CPU (such as x64), and whether you need "Thread Safe" (TS) or "thread unsafe" (whatever that means). You also need to add the paths of your webserver (such as Apache 2.4) and PHP to your "Paths" system environment variables, using the System Properties dialog box.
Once you have PHP working, you can add the ssh2 library by downloading two files and editing php.ini, as follows:
Download file php_ssh2.dll from https://github.com/jhanley-com/php-ssh2-windows (if you are using PHP 8.2 or 8.3), or from https://pecl.php.net/package/ssh2/1.4.1/windows . You put this file into folder php/ext .
You also need the main ssh2 file libssh2.dll to put in the php folder, which you can get from https://libssh2.org/, section "libssh2-1.11.1.zip".
And you edit the php.ini file to add this line: "extension=ssh2". Restart Apache, and run a php file containing "phpinfo()". If ssh2 was installed correctly, you will see a section titled "ssh2" containing its version information. |
|
| Back to top |
|
Stray78

Joined: 15 Apr 2024 Posts: 50 Location: USA
|
Posted: Fri 26 Dec '25 22:39 Post subject: |
|
|
A lot of people say Apache can't run PHP as a module. I've been using it like this for 15-20 years. Get PHP from the "https://windows.php.net/". I use the "thread safe" version and never had an issue.
I have no clue about the ssh2 module, I don't use that. |
|
| Back to top |
|
|
|
|
|
|