问题
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