How To Install the SSH2 PHP Extension to WAMPServer.DOWNLOAD the SSH2 extension
from here- click on the word 'DLL' next to the windows icon to get to the windows builds.
For WAMPServer you will need the TS ( Thread Safe ) versions
Download the Thread Safe version that matches your WAMPServer i.e. 32bit/64bit and the major version of PHP you want to install it into i.e. PHP5.4 or PHP5.5 etc.
If you are running 32bit WAMPServer even on a 64bit Windows you should be using the 32bit (x86) version of ssh2!
Using wampmanager, stop all services
- wampmanager -> Stop all Services
Extract these 2 files from the zip (rememeber the SSH2 files are specific to a version of PHP, so make sure you use the correct zip file).
copy libssh2.dll to \wamp\bin\php\phpx.y.z\
copy php_ssh2.dll to \wamp\bin\php\phpx.y.z\ext
Edit php.ini ( using the wampmanager menus )
- wampmanager -> PHP -> php.ini
Locate the section containing the extension parameters and add this line
extension=php_ssh2.dll
IF you are using
WAMPServer 2.5.15 or later you can
skip this next step as it has already been incorporated into the WAMPServer refresh process.
IF you are using WAMPServer 2.5 or older versions :
Edit \wamp\scripts\config.inc.php
Find this section of the file,
$phpDllToCopy = array (
And add this line into the array, it can go anywhere in that list
$phpDllToCopy = array (
'libssh2.dll',
Start all the services again
- wampmanager -> Start all Services
Look at
- wampmanager -> PHP -> PHP Extensions
-- You should see php_ssh2 in the list with a tick beside it.
Now you need to get WAMPManager to rebuild the SYMLINKS into the \apachex.y.z\bin folder. So using the wampamanager menus DO:
- wampmanager -> Apache -> Version -> 2.4.9 ( click on the version number, it may or may not be 2.4.9 )
This should take a few second and then you are ready to test that ssh2 is loaded.
Now launch localhost
- wampmanager -> localhost
On the homepage you should see `ssh2` in the list of `Loaded Services`
Click the `phpinfo()` link on the WAMPServer homepage and you should see the following information proving that SSH2 has been loaded
Now if you want to use SSH2 from PHP used at the command line ( PHP CLI ) then you need to do one more thing.Edit \wamp\bin\php\php{version}\php.ini
Locate the section containing the extension parameters and add this line
extension=php_ssh2.dll
You are done.
---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>Read The Manuals Apache --
MySQL --
PHP --
phpMyAdminGet your Apache/MySQL/mariaDB/PHP ADDONs here from the
WAMPServer alternate Repo-X-X-X-
Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-
Edited 4 time(s). Last edit at 01/21/2016 11:59AM by RiggsFolly.