宝塔安装SSH2拓展

记录 | php, 宝塔, ssh2

以PHP7.2为例子:

wget http://pecl.php.net/get/ssh2-1.2.tgz
tar -xvf ssh2-1.2.tgz
yum install libssh2-devel
cd ssh2-1.2/
/www/server/php/72/bin/phpize
./configure --with-php-config=/www/server/php/72/bin/php-config
make && make install

php.ini中添加

extension= /www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/ssh2.so

重启PHP

service php-fpm restart

吴尼玛

computer loser

可能感兴趣的文章

PHP三元运算符

PHP三元运算符

March 10th , 2020

Responses

  1. w3chtml

    在最深的绝望里,遇见最美丽的风景

点击撰写评论