No php.ini with brew

I installed PHP7 with brew and he said:

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

but I don’t see anything there. Therefore, I confirmed this 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 cannot run PHP scripts, how can I fix it?

+4
source share
1 answer

I have the same problem. Someone already created a problem 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 creates a php.ini file. It worked for me.

+5
source

Source: https://habr.com/ru/post/1655592/


All Articles