Install Image magick MAMP PHP56



In order to install ImageMagick on a Mac running MAMP

# 1 > Install HomeBrew

First install homebrew

Navigate to the website and follow instructions: www.homebrew.com

OR type the following into a terminal:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# 3 > Install Imagick - PHP extension

type in terminal:

brew install homebrew/php/php56-imagick

Add the extension by modifying the php.ini template in MAMP (2 locations = command line / browser)
-> Navigate to Applications -> MAMP -> bin -> php -> php5.6.30 -> conf -> php.ini
AND
-> Navigate to Applications -> MAMP -> conf -> php5.6.30 -> php.ini
-> look for '; extensions' and add under:
`extension="/usr/local/opt/php56-imagick/imagick.so"`

Reload MAMP -> stop / start

Create a php file called phpinfo.php

<?php phpinfo(); ?>

-> Ensure Imagick is loading: Search for `Imagick` (this ensures it is running in your browser)
AND
terminal: php -i "(command-line 'phpinfo()')" 


Other Instructions

Below are many other instructions that show you how to use your UpdateCase application