1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
//To check the version of PHP in the terminal, type the following command: php -v //or can see what versions of PHP are installed with brew list | grep php //Make sure brew is up to date: brew update brew upgrade //Let’s finally install 7.2 version of PHP brew install php@7.2 //If you need to have this version of PHP first in your PATH run the following command: source ~/.bash_profile //And the result? php --version Where is a php.ini file? Your .ini file is located in /usr/local/etc/php/7.2/php.ini. To check just type php --ini How to install extensions? PHP extensions have been removed and now should be installed from PECL: pecl install xdebug |