1 like 0 dislike
33 views
Install SSH2 extension for PHP
asked Jan 4 in Education & Reference by Sam (1,470 points) | 33 views
    

1 Answer

0 like 0 dislike

Install the necessary packages before you can build/install ssh2 extension

yum install gcc php-devel php-pear libssh2 libssh2-devel make

Install the extension, (hit enter for autodetect when it prompts you)

pecl install -f ssh2

Once the install is completed, you just have to tell PHP to load the extension when it boots.

echo extension=ssh2.so > /etc/php.d/ssh2.ini

Restart your webserver and test to see if the changes took effect.

service httpd restart

You can check it installed with the following command

php -m | grep ssh2

answered Jan 4 by Krish (920 points)

Related questions

1 like 0 dislike
1 answer
asked Sep 7, 2017 in Education & Reference by Krish (920 points) | 14 views
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Nov 29, 2017 in Education & Reference by Krish (920 points) | 201 views
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
1 like 0 dislike
1 answer
1 like 0 dislike
1 answer
2 like 0 dislike
1 answer
asked Nov 29, 2017 in Education & Reference by Sam (1,470 points) | 155 views
0 like 0 dislike
3 answers
1 like 0 dislike
1 answer

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

Mathe Forum Schule und Studenten
1,151 questions
1,281 answers
263 comments
1,506 users