快上网专注成都网站设计 成都网站制作 成都网站建设
成都网站建设公司服务热线:028-86922220

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

Calltoundefinedfunctionssh2_connect();安装ssh2

博客原文地址https://xgs888.top/post/view?id=58

目前创新互联建站已为上千家的企业提供了网站建设、域名、网页空间、网站运营、企业网站设计、陕西网站维护等服务,公司将坚持客户导向、应用为本的策略,正道将秉承"和谐、参与、激情"的文化,与客户和合作伙伴齐心协力一起成长,共同发展。

Call to undefined function sftp\ssh3_connect()

centos安装php的ssh3扩展

事先准备需要的

 libssh3 下载  wget https://www.libssh3.org/download/libssh3-1.8.0.tar.gz

ssh3下载 wget  wget http://pecl.php.net/package/ssh3/ssh3-1.1.2.tgz

cd /usr/loca/src
wget https://www.libssh3.org/download/libssh3-1.8.0.tar.gzwget http://pecl.php.net/package/ssh3/ssh3-1.1.2.tgz 

//解压
 tar -zxvf libssh3-1.8.0.tar.gz
 
 cd libssh3-1.8.0
 //编译到libssh3
 ./configure --prefix=/usr/local/libssh3
 
 make && make install
 
 
 
 
 #解压ssh3
 tar -zxvf ssh3-1.1.2.tgz   解压的时候报错看了一下文件类型是XHTML 最后在桌面解压好上传的
 cd ssh3-1.1.2
 phpize 结果报错如下

Can't find PHP headers in /usr/include/php The php-devel package is required for use of this command

Call to undefined function ssh2_connect();安装ssh2

直接安装php-dev

yum install php55w-del ;//PHP版本是5.5的

执行phpize

Call to undefined function ssh2_connect();安装ssh2

./configure --prefix=/usr/local/ssh3 --with-ssh3=/usr/local/libssh3

结果都是报错,上官网看了一下,原来是ssh3-1.0yi以上版本是PHP7.0

Call to undefined function ssh2_connect();安装ssh2

Call to undefined function ssh2_connect();安装ssh2

下载0.12版本

cd ssh3-0.12/
phpize
./configure --prefix=/usr/local/ssh3 --with-ssh3=/usr/local/libssh3


//复制ssh3.so 到 /usr/lib64/php/modules/
///usr/lib64/php/modules/ php扩展目录
 cp modules/ssh3.so /usr/lib64/php/modules/
 
 vi /etc/php.ini
 添加 extension=ssh3.so
 
 上面就ok了
 查询一下 php -i|grep ssh3

Call to undefined function ssh2_connect();安装ssh2



文章标题:Calltoundefinedfunctionssh2_connect();安装ssh2
文章分享:http://6mz.cn/article/giiode.html

其他资讯