在 Xampp Windows 上启用 LDAP [英] Enable LDAP on Xampp Windows
问题描述
我想在我的 XAMPP Windows 10 上启用 LDAP 模块,这是我尝试过的几个解决方案:
I want to enable LDAP module on my XAMPP Windows 10, here's the few solutions that I've tried :
- 将 dll 文件复制到 System 和 System32 和取消注释 php.ini 中的 extension=php_ldap.dll,无论是开发还是生产.
- 复制 libsasl.dll 到 xampp/apache/bin
这些都不起作用,当我打开 phpinfo() 时没有显示 ldap 信息,这意味着 ldap 无法安装.我还在 Windows 路径中添加了 PHP,但没有成功,但我的方法是错误的,或者不是解决方案.任何帮助表示赞赏.
None of these working, when I opened phpinfo() there is no ldap info showing, which means the ldap hasn't been able to installed. I also added PHP in Windows Path with no success, but either my approach is wrong or that wasn't a solution. Any help appreciated.
推荐答案
我刚刚遇到了同样的问题,你提供的链接 如何在 XAMPP 环境中启用 LDAP 扩展 最终成为我的解决方案.
I just ran into the same issue and the link you provided How to enable LDAP extension in XAMPP environment ended up being the solution for me.
我将 libeay32.dll 和 ssleay32.dll 从 C:/Ampps/php 复制到 C:/Windows/System32.我确保这些文件都不在 C:/Windows/System 中.从那里我在 php.ini 文件中启用了 extension=php_ldap.dll .Ampps 有一个列表,您可以启用 php.ini dll,如果我没记错的话,XAMPP 也是如此.最后一步是重新启动 Apache,您应该一切顺利.
I copied libeay32.dll and ssleay32.dll from C:/Ampps/php to C:/Windows/System32. I made sure neither of these files were in C:/Windows/System. From there I enabled extension=php_ldap.dll in the php.ini file. Ampps has a list you can enable php.ini dll's and if I remember right so does XAMPP. The last step is to just restart Apache and you should be good to go.
我正在使用带有 Ampps 而不是 XAMPP 的 Windows 10,但必须认为它们非常接近.
I'm using Windows 10 with Ampps instead of XAMPP but have to think they are pretty close.
这篇关于在 Xampp Windows 上启用 LDAP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!