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 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
That was enough for my setup. `pecl` managed to install imagick.so in the right place and configure PHP to find it. Homebrew’s new PHP includes the rest of the dependencies I need. So yay!
# Get the homebrew stuff up. LoadModule php5_module /email@example.com/lib/httpd/modules/libphp5.so <FilesMatch .php$> SetHandler application/x-httpd-php </FilesMatch