How to install SSH2 extension for PHP


How to install SSH2 extension for PHP on Windows

Step 1: Download SSH2 release at here

Ex: for PHP 5.4 http://windows.php.net/downloads/pecl/releases/ssh2/0.12/php_ssh2-0.12-5.4-ts-vc9-x86.zip

Step 2: extract file php_ssh2.dll then place it in your extension folder like: D:\AppServ\php5\ext

php ssh2 extension
php ssh2 dll

Step 3: extract file libssh2.dll then place it in your PHP’s folder like: D:\AppServ\php5

libssh2 dll

Step 4: Open file php.ini then uncomment line:

;extension=php_ssh2.dll

php ini php ssh2

Step 5: restart Apache

Now you can use SSH2 extension for PHP

ssh2 install success

How to install SSH2 extension of PHP on Centos

Leave a Reply