没有用brew的php.ini [英] No php.ini with brew
本文介绍了没有用brew的php.ini的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用brew安装了PHP7,它说:
I installed PHP7 with brew and it said:
The php.ini file can be found in:
/usr/local/etc/php/7.0/php.ini
但是我什么都没看到.所以我用php-fpm -i
确认了:
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
我认为出于这个原因,我无法运行PHP脚本,该如何解决?
I think for this reason I'm unable to run PHP scripts, how do I fix it?
推荐答案
我遇到了同样的问题. 有人为此已经创建了一个问题:
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
- https://github.com/Homebrew/homebrew-php/issues/3599
- https://github.com/Homebrew/homebrew-php/issues/3598
运行brew install php70 --build-from-source
看起来确实创建了一个php.ini文件.它对我有用.
It looks like running brew install php70 --build-from-source
does create a php.ini file. It worked for me.
这篇关于没有用brew的php.ini的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文