在xampp上安装ssh2 [英] Installing ssh2 on xampp

查看:112
本文介绍了在xampp上安装ssh2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 xampp

  • Xampp版本:3.2.1
  • PHP版本:5.4.19

直到现在,我已经使用以下步骤进行安装:

Until now I have used following step to install:

  1. 下载libssh2.dll文件并将其复制到c:\windows\system32

php_ssh2.dllphp_ssh2.pdb文件;

从php.ini的extention:php_ssh2.dll行中删除;.

remove ; from this line extention:php_ssh2.dll in php.ini.

重新启动xampp

但是我在日志文件中遇到错误:

But I am getting error in log file:

无法加载动态库php_ssh2.dll

unable to load dynamic library php_ssh2.dll

有人可以帮我吗?

推荐答案

您可能会错过的几件事:-

A couple of things you may have missed :-

  • 您需要php_ssh2的线程安全(-ts-)版本
  • 您需要确保获得32位或64位版本以匹配您的PHP/Apache 而不匹配您的操作系统
  • 您需要与您的PHP版本匹配的php_ssh2版本,即5.4

此处可供下载使用VC9编译的32位版本的SSH2(可用于PHP5.4),因此必须确保已安装32位版本的XAMPP.

Having a look here for the download there is only a 32bit version of SSH2 compiled with VC9 available for PHP5.4, so you will have to ensure you have the 32bit version of XAMPP installed.

哦,最后一点,您不需要,也不应该,将php_ssh2.dll的副本复制到c:\windows\system32中,因此从该文件夹中删除dll. PHP知道只有在您想升级XAMPP版本时,才能从哪里加载扩展并将文件放在c:\windows\system32中.

Oh and a final note, you do not need, and should not do, the copy of php_ssh2.dll into the c:\windows\system32 so remove the dll from this folder. PHP knows where to load its extensions from and putting files in c:\windows\system32 will only confuse things when you want to upgrade your version of XAMPP.

这篇关于在xampp上安装ssh2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆