没有php.ini与brew

我用brew安装了PHP7,它说:

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

但我没有看到任何东西.所以我用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

我想因为这个原因我无法运行PHP脚本,我该如何解决

解决方法:

我有同样的问题.
有人已经为此创建了一个问题:

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

它看起来像运行brew安装PHP70 –build-from-source确实创建了一个PHP.ini文件.它对我有用.

相关文章

最近做自动化测试时,深感自己对前端涉猎太少,加上对这块比...
homebrew本身就是一个git仓库。使用homebrew安装软件包时,会...
一、Homebrew安装、卸载等命令Homebrew的安装和卸载都非常简...
在mac系统中,使用homebrew可以很方便的管理包。按照官网的说...
我按照说明从这里使用brew安装mysqlhttps://gist.github.com...
我在macOS10.12.4上安装了nginx1.10.3和php5.5.38作为开发服...