Start PHP Error: Libssh2.dll lost.
Workaround: Install the PHP-SSH2 extension.
PHP-SSH2 extension Tutorial for installing PHP under Windows7
Because I want to do a test server file requirements, see PHP support SSH operation, so the next installation process, share with you.
Installation steps
1. Download Phpextension SSH2
Download Address http://windows.php.net/downloads/pecl/releases/ssh2/0.12/
According to your own version of PHP to download, I am using thread-safe, so the download is Php_ssh2-0.12-5.4-ts-vc9-x86.zip
2. After the decompression, there will be three files, Libssh2.dll, Php_ssh.dll, php_ssh2.pdb.
3. Put Php_ssh.dll, php_ssh2.pdb in your PHP extension directory under php/ext/.
4. Copy the Libssh2.dll to the C:/windows/system32 and C:/WINDOWS/SYSWOW64
5. Add Extension=php_ssh2.dll to the php.ini
6. To restart Apache, you can use PHP to perform an SSH connection operation.
View Phpinfo (), whether there is a display PHP_SSH2 extension loaded successfully.
PHP Test Code
Copy the code code as follows:
$connection = Ssh2_connect (' 192.168.255.128 '), Ssh2_auth_password ($connection, ' root ', ' 123456 '); Ssh2_scp_send ($ Connection, ' d:/tmp/test.txt ', '/tmp/test.txt ', 0644);
+
=
=
=
=
+