How to Install Imagemagick with PHP imagick extension on CentOS
To install imagemagick with PHP imagick extension on CentOS you must follow these steps:
log into your vps via SSH with your SSH client such as Putty (for windows) then type the following commands :-
yum install ImageMagick.i386pecl install imagick
At the end of the installation, create an inclusion file for imagick.so module and restart apache:
echo "extension=imagick.so" > /etc/php.d/imagick.ini
/etc/init.d/httpd restart
Test the correct loading of the imagick module with:
php -m | grep imagick