How to install imagick on linux server

Login to server as root

cd /root/download

wget http://serverip/imagick-3.0.1.tgz

tar -xzvf imagick-3.0.1.tgz

cd imagick-3.0.1

phpize

./configure

If you are getting error message then run /scripts/installimagemagick

make

make intall

add the below line in php.ini (path of php.ini on server/usr/local/lib/php.ini)

search mysql.so enter the below line under that

extension=imagick.so

Restart Apache

In php -m imagick should be listed

 

Manual Installation:

Download ‘Imagick’ from ‘pecl.php.net’.

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

Extract.

tar -zxf imagick-3.0.1.tgz

Configure and Install.

cd imagick-3.0.1

phpize && ./configure

make

make install