note 108542 added to ssh2.installation
| From: | dagan at vidtel dot com | Date: | Sat, 05 May 2012 05:43:44 +0000 |
| Subject: | note 108542 added to ssh2.installation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187480@lists.php.net to get a copy of this message | ||
Adding SSH support to PHP on Windows
=============================
After a lot of research and several configurations, I've managed to determine the requirements
to get SSH functioning properly with PHP for Windows.
First, the SSH2 module is (sort of unofficially) available here:
- http: // downloads.php.net/pierre/php_ssh2-0.11.2-5.3-vc9-x86.zip
The link is to the thread-safe version, but there's a non-thread-safe version available as well
at http: // downloads.php.net/pierre/.
Second, make sure you're running a version of Apache built with OpenSSL 0.9.8v (like those
linked below). Builds of Apache HTTPD using OpenSSL 1.0.1a won't provide any errors or any
other information that makes it easy to run down the issue. The process will just crash.
I've managed to get the above SSH2 module working with all of the combinations of PHP and
Apache HTTPD listed below, but the real key is the OpenSSL library version, so other version
combinations should work as well.
Apache 2.2, PHP 5.3.6
----------------------
- (Apache 2.2) http: //
www.apachelounge.com/download/win32/bins/httpd-2.2.22-win32-ssl_0.9.8v.zip
- (PHP 5.3.11) http: //
windows.php.net/downloads/releases/php-5.3.11-Win32-VC9-x86.zip
Apache 2.2, PHP 5.3.11
----------------------
- (Apache 2.2) http: //
www.apachelounge.com/download/win32/bins/httpd-2.2.22-win32-ssl_0.9.8v.zip
- (PHP 5.3.11) http: //
windows.php.net/downloads/releases/php-5.3.11-Win32-VC9-x86.zip
Apache 2.4.2, PHP 5.3.6
-----------------------
- (Apache 2.4) http: //
www.apachelounge.com/download/win32/bins/httpd-2.4.2-win32-ssl_0.9.8v.zip
- (Apache 2.4 PHP Handler) http: //
www.apachelounge.com/download/win32/mods-2.4/php5apache2_4.dll-php-5.3-win32.zip
- (PHP 5.3.6) http: //
windows.php.net/downloads/releases/php-5.3.6-Win32-VC9-x86.zip
Apache 2.4.2, PHP 5.3.11
------------------------
- (Apache 2.4) http: //
www.apachelounge.com/download/win32/bins/httpd-2.4.2-win32-ssl_0.9.8v.zip
- (Apache 2.4 PHP Handler) http: //
www.apachelounge.com/download/win32/mods-2.4/php5apache2_4.dll-php-5.3-win32.zip
- (PHP 5.3.11) http: //
windows.php.net/downloads/releases/php-5.3.11-Win32-VC9-x86.zip
----
Server IP: 208.69.120.55
Probable Submitter: 66.205.134.224
----
Manual Page -- http://www.php.net/manual/en/ssh2.installation.php
Edit -- https://master.php.net/note/edit/108542
Del: integrated -- https://master.php.net/note/delete/108542/integrated
Del: useless -- https://master.php.net/note/delete/108542/useless
Del: bad code -- https://master.php.net/note/delete/108542/bad+code
Del: spam -- https://master.php.net/note/delete/108542/spam
Del: non-english -- https://master.php.net/note/delete/108542/non-english
Del: in docs -- https://master.php.net/note/delete/108542/in+docs
Del: other reasons-- https://master.php.net/note/delete/108542
Reject -- https://master.php.net/note/reject/108542
Search -- https://master.php.net/manage/user-notes.php