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.6brew 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 mysqlbrew services start php@5.6(this might be unnecessary)- Mangle the apache configuration files (below).
emacs /usr/local/etc/php/5.6/php.inibrew install imagemagick pkg-configpecl install imagick
- Log in to post comments