在Xampp Windows上启用LDAP

在Xampp Windows上启用LDAP

问题描述:

我想在XAMPP Windows 10上启用LDAP模块,这是我尝试过的一些解决方案:

I want to enable LDAP module on my XAMPP Windows 10, here's the few solutions that I've tried :


  1. 将dll文件复制到System和System32 取消注释php.ini中的extension = php_ldap.dll,包括开发和生产。

  2. 将libsasl.dll复制到xampp / apache / bin

  1. Copy dll files to System and System32 and uncomment extension=php_ldap.dll in php.ini, both development and production.
  2. Copy libsasl.dll to xampp/apache/bin

这些都不起作用,当我打开phpinfo()时没有显示ldap信息,这意味着ldap不能已安装。我还没有在Windows Path中添加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.

我正在使用Windows 10和Ampps而不是XAMPP,但是必须认为它们非常接近

I'm using Windows 10 with Ampps instead of XAMPP but have to think they are pretty close.