Install PHP and extensions after Homebrew1.5

Source: Internet
Author: User
Tags install brew install redis

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.