No php.ini with brew

点点圈 提交于 2020-02-28 00:02:08

问题


I installed PHP7 with brew and it said:

The php.ini file can be found in:
    /usr/local/etc/php/7.0/php.ini

but I don't see anything there. So I confirmed it with php-fpm -i:

Configuration File (php.ini) Path => /usr/local/etc/php/7.0
Loaded Configuration File => (none)
Scan this dir for additional .ini files => /usr/local/etc/php/7.0/conf.d

I think for this reason I'm unable to run PHP scripts, how do I fix it?


回答1:


I have the same issue. Someone has already created an issue for this:

  • https://github.com/Homebrew/homebrew-php/issues/3599
  • https://github.com/Homebrew/homebrew-php/issues/3598

It looks like running brew install php70 --build-from-source does create a php.ini file. It worked for me.



来源:https://stackoverflow.com/questions/39657052/no-php-ini-with-brew

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