Installing Image Magick on Amazon EC2
Solution 1:
ImageMagick and PHP's imagick extension are separate entities. imagick depends on ImageMagick being installed, but isn't installed with it.
Typically, you'd install imagick with sudo pecl install imagick
(you may need ImageMagick-devel
and php-devel
as well, I think). There are, depending on your repositories, also yum/apt packages that do it for you.
Solution 2:
These worked for me:
yum install php-pecl-imagick
if running php 5.5
yum install php55-pecl-imagick
if running php 5.6
yum install php56-pecl-imagick
if running php 7.0
yum install php70-pecl-imagick
if running php 7.1
yum install php71-pecl-imagick
if running php 7.2 (YOU SHOULD BE BY NOW!)
yum install php72-pecl-imagick