Installing ImageMagick for PHP and MAMP
- Install Brew (https://github.com/mxcl/homebrew/wiki/installation)
- In Terminal, run: brew install imagemagick
- In Terminal, run: brew tap josegonzalez/homebrew-php
- In Terminal, run: brew install imagick-php
- Copy the compiled extension path (extension= …)
- Edit this file: /Applications/MAMP/Library/bin/envvars
- Comment out the only lines that aren’t already commented out.
- Add the extension= path to your php.ini files.
MAMP Users:
/Applications/MAMP/bin/php/php5.3.6/conf
MAMP Pro Users:
/Applications/MAMP/bin/php/php5.3.6/conf
/Library/Application Support/appsolute/MAMP PRO/conf/php.ini
And MAMP PRO > File > Edit Template > PHP > SELECT YOUR VERSION
/Library/Application Support/appsolute/MAMP PRO/conf/php.ini
And MAMP PRO > File > Edit Template > PHP > SELECT YOUR VERSION
Everyone Else:
In Terminal, run: php -i | grep php.ini$ to find the location of your .ini file.
Restart Apache via MAMP.