How does the format become this bird? Homebrew 1.5 announced the abandonment of homebrew/php, instead of using Homebrew/core maintenance, see https://brew.sh/2018/01/19/homebrew-1.5.0/ So php extension in homebrew/php search, so I re-installed Homebrew/core PHP (default is [email protected]) First update brew:brew update && Brew Upgradebrew Doctor then removed the previously used PHP as well as the extension (I was to make the brew list look cleaner, urgent choice, in case the old delete, the new installation failure is embarrassing) brew uninstall php56 php71 if the deletion failed , follow the prompts to check brew tap, remove the failed tap, science and versions also failed, so removed brew untap homebrew/phpbrew Untap homebrew/sciencebrew Untap Homebrew/versions then installs the new phpbrew install [email protected] or Brew install PHP after installing the update ~/.ZSHRC file, remove the old PHP environment variables, Join the new export path= "/usr/local/opt/[email protected]/bin: $PATH" Export path= "/usr/local/opt/[email Protected]/sbin: $PATH "command-line view of the PHP version, should already be 7.2 version of the Php-vhomebrew/core Library extension is also very few, unable to find the extension through Pecl install brew install AUTOCONFPECL Install apcupecl install memcachedpecl install imagick pecl install xdebugpecl install Redis ... After installing the PHP-M View list finally remember to update httpd.conf inside the PHP7 module LoadModule php7_module/usr/local/cellar/php/7.2.6/lib/httpd/modules/libphp7.so Restart Apache, you should be able to move the bricks normally.
Install PHP and extensions after Homebrew1.5