Installing SSH2 extensions in Linux systems detailed Linux skills learning

Source: Internet
Author: User
Tags install php

 

in the Linux Server The SSH2 extension is deployed in the environment to compile the SSH script commands in the PHP file , and is configured as follows, if it is run directly in a formal environment, It is recommended that you do a backup.

1. Installing the supported library files

command:yum install php-devel php-pear libssh2 libssh2-devel

2. build ssh2 Extensions

command:pecl install-f SSH2

After that, the installed log will be displayed, and you will need to press ENTER directly when selecting.

3. after the installation is successful, you need to modify Ssh2.ini

[Email protected] etc]# Touch/etc/php.d/ssh2.ini

[Email protected] etc]# echo extension=ssh2.so >/etc/php.d/ssh2.ini

you can open /etc/php.d/ssh2.ini with vim to confirm that it already contains extension=ssh2.so

4. Verify that the installation is successful

php-m | grep SSH2

Display ssh2 indicates successful installation


Installing SSH2 extensions in Linux systems detailed Linux skills learning

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.