Homebrew changed how it handles PHP. A
brew updatecompletely 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/localthat seemed important. Then paved it clean to start over.
- Download and install homebrew.
brew install email@example.com(and a bunch of other stuff like npm, yarn, bower, etc).
brew link --force --overwrite firstname.lastname@example.org
brew install mysqlbecause 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 email@example.com(this might be unnecessary)
- Mangle the apache configuration files (below).
brew install imagemagick pkg-config
pecl install imagick