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 firstname.lastname@example.org(and a bunch of other stuff like npm, yarn, bower, etc).
brew link --force --overwrite email@example.com
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 firstname.lastname@example.org(this might be unnecessary)
- Mangle the apache configuration files (below).
brew install imagemagick pkg-config
pecl install imagick