使用MAMP启用MCrypt [英] Enable MCrypt using MAMP

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

问题描述

我正在使用MAMP,并且ive安装了一个新版本的Opencart,当我进入终端并输入以下内容时,它告诉我我未启用MCrypt:

I'm using MAMP and ive installed a fresh version of Opencart, its telling me i dont have MCrypt enabled, when i go to terminal and type:

php -m | grep mcrypt
output: mcrypt

我可以找到该库,但是它似乎没有启用.

I can locate the library but it doesn't seem to be enabled.

推荐答案

php -m | grep mcrypt返回mcrypt的事实意味着mcrypt库已安装并启用.

That fact that php -m | grep mcrypt returns mcrypt, means the mcrypt library is INSTALLED and ENABLED.

尽管可能只是为CLI启用了它.

Although it may just be enabled for CLI.

您可以尝试编辑PHP.ini文件,并在; Extensions部分下添加以下行:

You can try editing the PHP.ini file and adding the following line under the ; Extensions section:

extension=mcrypt.so

保存php.ini文件后重新启动Apache/MAMP.

Restart Apache / MAMP after saving php.ini file.

要找到正确的php.ini文件进行编辑,请运行以下命令行:

To find the correct php.ini file to edit, run the following command line:

php --info | grep php.ini

(如果该行已经存在,您可能只需要删除前面的; thats.)

(If the line already exists, you may just need to remove the ; thats in front of it.)

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

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