php.ini扩展目录不起作用 [英] Php.ini extension directory not working
本文介绍了php.ini扩展目录不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的php.ini文件中,我已经在Mac OSX上安装了扩展名目录:
In my php.ini file i have setup on Mac OSX i've added in an an extension directory:
extension_dir = "/usr/local/php5/lib/php/extensions/no-debug-non-zts-20131226"
我已经重新启动apache,并注意到它没有使用此地址:
I've restarted apache and noticed that it isn't using this address instead:
/usr/local/Cellar/php56/5.6.26_2/lib/php/extensions/no-debug-non-zts-20131226
现在,当我检查php信息并显示/private/etc/apache2/php.ini
Now i'm 100% sure im in the correct php.ini files as i checked the php info and it says /private/etc/apache2/php.ini
我正在尝试安装第一个目录中的mcrypt,我在看错误的ini文件吗?还是我很傻并且写错了东西?
I'm trying to get mcrypt installed which is in the first directory, am i looking at the wrong ini file? Or am i being silly and writing something incorrectly?
我想念什么?
推荐答案
sudo killall httpd
然后
sudo apachectl start
解决了我的问题,感谢YvesLeBorg提供的信息.
fixed my problem, Thanks to YvesLeBorg for the info.
这篇关于php.ini扩展目录不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文