LDAP 错误 500 问题
我正在尝试将站点从 Windows XP/PHP5.2.0/MySQL5.5.8 配置迁移到 Windows Server 2008/PHP5.3.8/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.ini 中放入的修改PHP 文件夹。
I'm trying to migrate a site from a Windows XP/PHP5.2.0/MySQL5.5.8 configuration to a Windows Server 2008/PHP5.3.8/MySQL5.5.8 one.
The database and the index.php page are working fine. But for the login i am using a ldap_connect to get through. And this is when i get the Error 500.
When i do the usual phpinfo();
i see that the ldap module is not loaded. Fine i just have to edit my php.ini
file, unquote extension_dir = "ext"
and add extension=php_ldap.dll
to it.
But as i am restart my Apache server it crashes adding this entry to the Event journal (i translated it myself since it was in french) :
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
And i can't find a way to fix that, importing the PHP versions from my Windows XP and getting the latest 5.3.9 or older 5.2.0, nothing seems to work.
I have seen somewhere that on Windows the php.ini is in the C:\WINDOWS folder, i put a copy in there but php doesn't seem to use it since it always uses the modifications i put in the php.ini in the PHP folder.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它也适用于我,
某处似乎存在错误。如果您在 Win 7 64 位上遇到此问题,请尝试安装 apache 插件版本 2.2.9 和 php 插件版本 5.3.1 并切换到 WAMP 中的插件,然后激活 CURL 扩展。
It works for me too
There seems to be a bug somewhere. If you are experiencing this on Win 7 64 bit then try installing
apache
addon version 2.2.9 and php addon version 5.3.1 and switching to those in WAMP and then activating the CURL extension.我不知道我是否有一些损坏的发行版或其他东西,但我通过从 php.net 下载另一个最新的 PHP 发行版来解决这个问题,并且它有效。
是的,我的 ext 和 /PHP/ 目录中都有扩展名 php_ldap.dll,我的 %PATH% 已正确设置,并且 C:\Windows 中的 php.ini 和 /PHP/ 目录均已正确配置。
尽管我尝试了几个 PHP 版本,但我认为 php_ldap.dll 一定已损坏。
I don't know if i had some corrupted distribution or something but i figured it out by downloading another latest PHP distribution from php.net and it worked.
Yes i had the extension php_ldap.dll in both my ext and /PHP/ directories, my %PATH% was correctly setup and both php.ini in C:\Windows and the /PHP/ directories were correctly configured.
I think php_ldap.dll must have been corrupted though i tried with several PHP versions.