: This article describes how to install the ssh2 extension when php accesses sftp in the OSX system. if you are interested in the PHP Tutorial, refer to it. Andy @ AndyMacBookPro:/usr/local/src $ php-v
PHP 5.4.40 (cli) (built: May 3 2015
For more information about ssh2 extension installation in php, see. 1. there are three servers in the operating system: 10.110.211.2 and three different versions. it is found that 11.2 does not need to be installed and has some extensions. If you
1, there are three servers, the operating system is: 10.1 10.2 11.2 Three different versions, found that 11.2 do not need to install, already have some extensions. If you do not have the installation, it may be convenient to complete the
1. There are three servers and the operating systems are 10.1 10.2 11.2 and 11.2. We found that does not need to be installed and has some extensions. If you have not installed yast, It is very convenient to install yast.
Test on the 10.1 server,
PHP remote Copy and execute command
PHP Remote copy files and when executing commands on a remote server, the module used is SSH2, and all subsequent operations are done according to the SSH2 connection handle.
1. SSH2 Module Installation 1.1
1. Installing the SSH2 Extension
(1) window
1 download PHP extension ssh2 download address http://windows.php.net/downloads/pecl/releases/ssh2/0.12/ Download according to your PHP version 2. After the decompression, there will be three files,
1. Installing the SSH2 extension (1) window1 . Download PHP extension ssh2 http://windows.php.net/downloads/pecl/releases/ssh2/0.12/ Download according to your PHP version 2. After the decompression, there will be three files, Libssh2.dll,
Environment: Linux Environment (Centos or RedHat)1. Confirm that the environment is installed PHP-5# Rpm-qa|grep Php-5Php-5.3.3-48.el6_8.x86_642, installation Ssh2 depends on the RPM package, such as the gray part of the display, the installation
1. Installing the SSH2 extension
(1) window
1. Download the PHP extension ssh2 download address http://windows.php.net/downloads/pecl/releases/ssh2/0.12/According to your PHP version to download 2. After the decompression, there will be three
What is PHP's SSH2 extensionPHP ssh2 Extension (hereinafter referred to as PECL/SSH2), allows remote execution of system commands and file transfers in PHP programs, without the need to independently develop and deploy similar agnet "trojan"
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.