Php.ini extension directory not working

心不动则不痛 提交于 2019-12-11 06:07:01

问题


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"

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

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

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?

What am i missing?


回答1:


sudo killall httpd

and then

sudo apachectl start

fixed my problem, Thanks to YvesLeBorg for the info.



来源:https://stackoverflow.com/questions/39790275/php-ini-extension-directory-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!