mcrypt未加载(即使在安装后) [英] mcrypt is not loading (even after installing)
本文介绍了mcrypt未加载(即使在安装后)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将Mac的内置php 5.6版本更改为7.0,它可以正常工作,但我的mcrypt
无法正常工作.我已经使用brew install mcrypt php70-mcrypt
安装了它.
我该如何解决此问题?我正在使用MacOS Sierra.
I have changed mac's builtin version 5.6 of php to 7.0 which works fine but my mcrypt
is not working. I have installed it using brew install mcrypt php70-mcrypt
.
How I can fix this issue? I am using MacOS Sierra.
推荐答案
您需要通过编辑/etc/php.ini来启用扩展.如果此文件不存在,请复制/etc/php.ini.default并将其重命名:
You need to enable the extension by editing /etc/php.ini. If this file is not present, copy /etc/php.ini.default and rename it:
sudo cp /etc/php.ini.default /etc/php.ini
编辑/etc/php.ini文件并添加以下内容:
Edit the /etc/php.ini file and add the following:
extension=mcrypt.so
然后重新启动apache
and Restart apache
sudo apachectl restart
这篇关于mcrypt未加载(即使在安装后)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文