7

Well I'm a PHP developer who know few linux commands to get my job done.

I need to launch a symfony 1.4 website on Amazon EC2. Everything is fine except IMagick. I magick is also installed through following command:

sudo yum install ImageMagick

Its php lib is not installed/configured, if that do not happen with above command. In PHP, I'm using IMagick, but script is failing on IMagick. I know problem is with PHP IMagic extention but dont know how to fix that. On dev box, its as simple as turning it on on WAMP.

Can someone please suggest where should I look to confirm if IMagick PHP extention installed and configured correctly?

4 Answers4

14

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
4

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.

ceejayoz
  • 33,432
0

In order to install php74-php-pecl-imagick to your ec2 instance without broken dependence you can follow the steps below and it will solve it.

yum install epel-release –y
amazon-linux-extras install epel
yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum --enablerepo=remi install php74-php-pecl-imagick

With this steps above your php74-php-pecl-imagick module will be installed like a charm after that.

-1

I am Using Amazon ec2 AMI and it worked for me:

yum install php72-pecl-imagick
Stuggi
  • 3,656