2014-02-25 06:25
浏览 246

致命错误:调用未定义的函数ssh2_connect() - Redhat操作系统

I installed required libraries for enabling ssh2 extension. I just followed this guide to install the php ssh2 extension. And it got enabled in my phpinfo page. But, still I'm not able to use ssh2_connection function within my php file. It says the following error message.

Please help to resolve this issue. Fatal error: Call to undefined function ssh2_connect()

Note: I'm using Redhat 6.3 Linux and I don't want any alternate library for this.


enter image description here

图片转代码服务由CSDN问答提供 功能建议

我安装了启用ssh2扩展所需的库。 我只是按照本指南安装php ssh2扩展。 它在我的phpinfo页面中启用了。 但是,我仍然无法在我的php文件中使用ssh2_connection函数。 它说以下错误消息。

请帮助解决此问题。 致命错误:调用未定义的函数ssh2_connect()

注意:我正在使用Redhat 6.3 Linux,我不想要任何备用库。

http://www.experts -exchange.com/OS/Linux/Q_27883937.html

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • dounouxi1020 2014-02-25 08:19

    Fixed: There are two php.ini files in the server, those are below. The second one will be placed depends on your server OS. Just look out what are the location for php.ini (locate php.ini) and add the extension in the local.

    解决 无用
    打赏 举报
  • duanque19820925 2016-05-24 17:06

    Try pecl install -f ssh2 Then make sure "extension=ssh2.so" is in your php.ini/

    解决 无用
    打赏 举报

相关推荐 更多相似问题