i am writing these notes here because these shell commands worked for me when i needed to install ImageMagick on a CentOS linux server using PHP:

so here are the commands:
yum install ImageMagick.i386
yum install ImageMagick-devel.i386
pecl install imagick
echo "extension=imagick.so" > /etc/php.d/imagick.ini
service httpd restart


ok, if that doesnt work for you, try this:

yum install ImageMagick
yum install ImageMagick-devel
pecl install imagick
echo "extension=imagick.so" > /etc/php.d/imagick.ini
service httpd restart