mcrypt 和 IIS - PHP 中未加载模块
我有 Windows 2003 Standard、IIS 6、PHP、MySQL 和 amy 试图让 mcrypt 工作,以便我可以使用 phpMyAdmin。
我在 php.ini 中有未推荐的 php_mcrypt.dll,该文件位于我的扩展文件夹 (c:\php) 中。
我已将 libmcrypt.dll 下载到 c:\php、c:\php\ext、c:\windows、c:\windows\system32。 我还在下一个文件中找到了该文件的第二个版本并进行了尝试。 每次更改后我都会重新启动 IIS。
无论我尝试什么,当我检查 php_info(); 时,mcrypt 似乎都没有加载。 但没有显示任何错误。
php_mcrypt.dll 还有其他版本吗? 有人有不需要 mcrypt 的 phpMyAdmin 版本吗? 有没有人遇到过这个问题/有解决方案吗?
我们将非常感谢所有帮助。
非常感谢,
蒂姆
I have Windows 2003 Standard, IIS 6, PHP, MySQL and amy trying to get mcrypt working so I can use phpMyAdmin.
I have uncommended php_mcrypt.dll in php.ini and this file is in my extensions folder (c:\php).
I have downloaded libmcrypt.dll to c:\php, c:\php\ext, c:\windows, c:\windows\system32. I have also found a second version of this file on the next and tried that. After each change I have restarted IIS.
Whatever I try mcrypt does not seem to be loaded when I check php_info();. But there are no errors showing.
Is there another version of php_mcrypt.dll? does anyone have a version of phpMyAdmin that does not need mcrypt? Has anyone experienced this problem / have a solution?
All help will be greatly apprecaited.
Many thanks,
Tim
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我们在 W2k3(x64)/IIS6/PHP5.2.17 上遇到了同样的问题。 将 libmcrypt.dll 复制到 %WINDIR%\SysWOW64 和 IISRESET 解决了该问题。
We had the same issue on W2k3(x64)/IIS6/PHP5.2.17. Copying libmcrypt.dll to %WINDIR%\SysWOW64 and an IISRESET solved the problem.
我也很难加载 mcrypt,但是上面的内容帮助我更接近解决方案。
I'm also having difficulty getting mcrypt to load, but above has helped me a lot in getting closer to a solution.
尝试使用 php -m 从命令行启动 php。 它将向您显示已加载模块的列表。
Try starting php from the commandline with php -m. It will show you a list of loaded modules.
我在使用 Win 2k3 Server + IIS 6 + PHP 5.2.9 + mcrypt 时也遇到了一个奇怪的问题。 一旦我添加了 mcrypt(或 mhash)扩展,fastcgi 就超时了。 当我从 php.ini 中删除这些扩展时,我按预期看到了 phpinfo() 页面。 真正奇怪的部分是,当我从命令行运行 php -m 时,我可以看到模块已加载。
我从 XAMPP(在 php 文件夹中)获取了所有 dll,并将它们全部粘贴到我的 PHP 安装文件夹中(对我来说是 C:\Program Files\PHP)。 进行更改后,
对 php.ini extension=php_mcrypt.dll
我完全重新启动了 IIS,而不是回收应用程序池,并且我的 phpinfo 页面按预期工作。 我不知道为什么,但 fastcgi 无法“看到”system32 文件夹中的库,我不得不将它们放在我的 php 根文件夹中。
祝你好运。
I was having a weird issue with Win 2k3 Server + IIS 6 + PHP 5.2.9 + mcrypt as well. As soon as I added the mcrypt (or mhash for that matter) extension, fastcgi just timed out. When I removed those extensions from php.ini I see my phpinfo() page as expected. The really weird part was that I could see the module loaded when I run php -m from the command line.
I grabbed all of the dlls from XAMPP (in the php folder) and stuck them all in my PHP installation folder (C:\Program Files\PHP for me). After making the the change to my php.ini
extension=php_mcrypt.dll
I restarted IIS completely rather than recycling the App Pool and my phpinfo page worked as expected. I am not sure why but fastcgi wasn't able to "see" the libraries in the system32 folder, I had to put them in my php root folder.
Good luck.
就我而言,我的网站给出了错误“PHP 警告:mcrypt_decrypt()...”
我使用 IIS6 - Plesk - PHP 2.5
因此,我将 Plesk CP 中的 PHP 版本更新到 5.3,然后错误消失了。
希望这对某人有帮助。
In my case, my site gave the error "PHP Warning: mcrypt_decrypt()..."
I use IIS6 - Plesk - PHP 2.5
So, I updated PHP version in Plesk CP to 5.3 and then the error disappeared.
Hope this helps somebody.
我遇到了同样的问题,发现我的 libmcrypt.dll 版本已损坏,当我从网上下载一个版本时,一切正常。 由于您已经这样做了,我怀疑这有帮助吗?
I had the same problem and found that the version of libmcrypt.dll I had was corrupt and when I downloaded a version from the net it was fine. As you have already done this I doubt this helps?