STUDY WHILE YOU ARE BORING


  • 首頁

  • 搜索

  • 技术

  • Tags

  • 关于我

CentOS 6.4 - Install SSH2 extension for PHP

發表於 September 6, 2017   |   作者: Tim   |   分类: 技术   |   评论

CentOS 6.4 - Install SSH2 extension for PHP

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
php, centos, ssh, ssh2
重置Launchpad
MISSIONCONTROL 显示器单独空间的区别

钜添

54 文章
2 分類
1 页面
GitHub 日记技术
php apache centos macos mysql https shadowsocks mac 微信 ups svn javascript outline accesskey Chrome Extension letsencrypt ssl free certification certbo wildcard renew cloudflare pgsql 归档 binlog isset array_key_exists redmine axure
© 2021 钜添   |   文章 RSS     |  登录
由 Typecho 强力驱动
主題 - NexT
Send message encrypted and private - Msg2
Build your Under Construction Page without hosting - UnderConstruct.IO