Ldap错误500问题


Ldap Error 500 Issue

我正试图将一个站点从Windows XP/PHP.2.0/MySQL5.5.8配置迁移到Windows Server 2008/PHP5.38/MySQL5.5.8.配置。

数据库和index.php页面运行良好。但对于登录,我使用ldap_connect进行登录。这就是我得到错误500的时候。

当我执行通常的phpinfo();时,我看到ldap模块没有加载。好吧,我只需要编辑我的php.ini文件,取消引用extension_dir = "ext"并将extension=php_ldap.dll添加到其中。

但当我重新启动Apache服务器时,将此条目添加到事件日志中会崩溃(我自己翻译了它,因为它是法语的):

Name of the failing application httpd.exe, version : 2.2.21.0, timestamp : 0x4e6a3015
Name of the failing module : php5ts.dll, version : 5.3.4.0, timestamp : 0x4d014bae
Exception Code : 0xc0000005
Error offset : 0x000e837c
Failling Process ID : 0x7b8
Starting time of failing application : 0x01ccd1405a22cca2
Path to the faulty application : C:'dev'tools'Apache2.2'bin'httpd.exe
Path to the faulty module: C:'dev'tools'PHP'php5ts.dll
Report ID : fa7f9585-3d37-11e1-84f3-005056bf005e

我找不到解决这个问题的方法,从我的Windows XP导入PHP版本,并获得最新的5.3.9或更旧的5.2.0,似乎什么都不起作用。

我在某个地方看到,在Windows上,php.ini在C:''Windows文件夹中,我在那里放了一个副本,但php似乎不使用它,因为它总是使用我在php文件夹中的php.ini中所做的修改。

它也适用于我

某个地方好像有个虫子。如果您在Win 7 64位上遇到这种情况,请尝试安装apache插件版本2.2.9和php插件版本5.3.1,并切换到WAMP中的插件,然后激活CURL扩展。

我不知道我是否有损坏的发行版或其他什么,但我通过从PHP.net下载另一个最新的PHP发行版发现了它,它起了作用。

是的,我在ext和/php/目录中都有扩展名php_ldap.dll,我的%PATH%设置正确,C:''Windows中的php.ini和/php/目录都配置正确。

虽然我尝试了几个php版本,但我认为php_ldap.dll一定已经损坏。