Install imagick on Linux server.

Refer to the following steps to install the imagick on Linux server but make sure that you have logged in as a root user and follow the steps carefully.

cd /usr/local/src

wget http://pecl.php.net/get/imagick-2.2.0.tgz

tar -zxvf imagick-2.2.0.tgz

cd imagick-2.2.0

phpize

./configure

make

make install

Add the following line in the php.ini file and restart the Apache web server

extension=imagick.so

Some time we receive an error after running the command

./configure

checking whether to enable the imagick GraphicsMagick backend… no

checking ImageMagick MagickWand API configuration program… configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.

To resolve the above error run the following command

yum install ImageMagick-devel

About Anant 373 Articles
Senior technical writer