Enable php_ssh2 library in PHP 7 on Windows 10 system

4.7k views Asked by At

I tried to enable php_ssh2 library in PHP 7 on windows 10 system. I have tried many ways, but nothing helps me.

When I tried to access "ssh2_connect()" function, it shows the below error "Fatal error: Call to undefined function ssh2_connect()".

OS: Windows 10

PHP Version : 7.2.4 (Wamp Server 3.1.3)

Please anyone help me on this?

1

There are 1 answers

3
Madhusudan On

1) Download extension on click https://phpfashion.com/php-ssh2-dll-for-php-5-6-and-7-0

Which compatible with your system like your system is 64 bit and php version is 7 then download php_ssh2.dll for PHP 7.0 x64,

2) In php.ini add below line extension= php_ssh2.dll

3) restart your xampp or wampp.