且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在xampp上安装ssh2

更新时间:2022-03-26 23:55:22

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

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.