first ssh to your server

download the latest version

wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz

extract the tar.gz file

tar xvfz ImageMagick.tar.gz

go to the extracted folder directory

cd ImageMagick-6.6.5-8

compile it

./configure
make

If ImageMagick configured and compiled without complaint, you are ready to install it on your system. Administrator privileges are required to install. To install, type

sudo make install
nano /usr/local/lib/php.ini

run the following to install imagemagick php extenssion

pecl install imagick

or install it from the source

cd /usr/local/src
wget http://pecl.php.net/get/imagick-2.2.2.tgz
tar zxvf ./imagick-2.2.2.tgz
cd imagick-2.2.2
phpize
./configure
make
make test
make install

add thsi line

extension=imagick.so

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.