phpmacoshomebrew

No php.ini with brew


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?


Solution

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

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