Homebrew changed how it handles PHP. A
brew update
completely broke my dev setup. This is how I fixed it.
My homebrew setup was too fucked to save. I started by backing up mysql (hello mysqldump --all-databases
) and a few other important files in /usr/local
that seemed important. Then paved it clean to start over.
- Download and install homebrew.
brew install php@5.6
(and a bunch of other stuff like npm, yarn, bower, etc).brew link --force --overwrite php@5.6
brew install mysql
because I have an older Mac that can't run the most recent PHP. Configuring it was a bit of a pain.brew services start mysql
brew services start php@5.6
(this might be unnecessary)- Mangle the apache configuration files (below).
emacs /usr/local/etc/php/5.6/php.ini
brew install imagemagick pkg-config
pecl install imagick
- Log in to post comments