在PHP启用mcrypt的安装 [英] Enable Mcrypt on PHP Install

查看:518
本文介绍了在PHP启用mcrypt的安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装使用Apache 2.2.16 Windows中(通过安装的.msi)PHP 5.2.14。安装附带两个分机/ php_mcrypt.dll和libmcrypt.dll但是当我在php.ini中注释掉的扩展= p​​hp_mcrypt.dll 并重新启动Apache的它不会启用。 phpinfo()函数显示什么吧。我缺少什么?

I have PHP 5.2.14 installed on a Windows box (installed via .msi) using Apache 2.2.16. The install came with both ext/php_mcrypt.dll and libmcrypt.dll but when I uncommented extension=php_mcrypt.dll in php.ini and restarted Apache it doesn't enable. phpinfo() shows nothing for it. What am I missing?

更新:

我看了看我的错误日志,并吐出了这一点,对我说:结果
PHP的警告:PHP启动:无法加载动态库'C:\\ PHP5 \\分机\\ php_mcrypt.dll' - 指定的模块找不到\\ r \\ n的未知在线0

I looked at my error logs and it spit this out to me:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP5\ext\php_mcrypt.dll' - The specified module could not be found.\r\n in Unknown on line 0

我读了一些关于这一点,我没有任何PHP的DLL存储在WINDOWS32 /文件夹,所以我很困惑。

I read up a bit about this and I don't have any php dll's stored in the windows32/ folder, so I'm confused.

推荐答案

我想通了,通过教程的组合:

I figured it out through a combination of tutorials:


  1. 新增libmcrypt.dll到System32文件夹

  2. Uncommnted在php.ini中的include_path var和添加的路径EXT

  3. 重启动Apache的

值得庆幸的是,在不需要重新启动系统。是否有一个或两个以上的是必要的,它并不重要,现在mcrypt的正常工作。谢谢大家。

Thankfully, no system reboot was required. Whether one or both of the above was necessary, it doesn't matter now that mcrypt is functioning. Thanks, everyone.

这篇关于在PHP启用mcrypt的安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆