Via Brew Install php7.1
The php.ini file can is found in:
/usr/local/etc/php/7.1/php.ini
???? Extensions????
If you have issues with custom extension compiling, ensure that is using the brew version, by Placing/usr/loca L/bin Before/usr/sbin in your PATH:
Path= "/usr/local/bin: $PATH"
PHP71 Extensions'll always be compiled against this PHP. Please install the them using--without-homebrew-php to enable compiling against system PHP.
???? PHP CLI????
If you wish-to-swap the PHP you have the command line, you should add the following to ~/.BASHRC, ~/.ZSHRC, ~/.profile o R your shell ' s equivalent configuration file:
Export Path= "$ (Brew--prefix homebrew/php/php71)/bin: $PATH"
???? Fpm????
To launch PHP-FPM on startup:
Mkdir-p ~/library/launchagents
Cp/usr/local/opt/php71/homebrew.mxcl.php71.plist ~/library/launchagents/
Launchctl load-w ~/library/launchagents/homebrew.mxcl.php71.plist
The control script is located at/usr/local/opt/php71/sbin/php71-fpm
OS X 10.8 and newer come with PHP-FPM pre-installed, to ensure is using the brew version you need to make sure/usr/l Ocal/sbin is before/usr/sbin in your PATH:
Path= "/usr/local/sbin: $PATH"
Also need to edit the plist to use the correct "UserName".
Please note that the plist is called ' homebrew-php.josegonzalez.php71.plist ' in old versions of this formula.
With the release of MacOS Sierra, the Apache module is now isn't built by default. If you want to build it on your system, you had to install PHP with the--WITH-HTTPD option. See the brew Options php71 for more details.
To has launchd start homebrew/php/php71 now and restart at login:
Brew Services Start homebrew/php/php71
==> Summary
?? /usr/local/cellar/php71/7.1.13_24:349 files, 39.8MB
Brew Install php7.1