I have seen many of the system admins confuses with the php Imagick and with ImageMagick(binary). Few of the php script requires the Imagick classes like Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator. So you need to download and install the Imagick separately by download it from pecl.
Installing Imagick
The installation procedure is same for Cpanel / Directadmin and plesk servers. Ssh your server as root.
- # cd /usr/src
# wget http://pecl.php.net/get/imagick-3.0.1.tgz
# tar zxvf imagick-3.0.1.tgz
# cd imagick-3.0.1
# phpize
# ./configure
# make && make install
The imagick.so use to copy to the php extensions directory for example ” /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ “. So next step is to edit and add the imagick.so line in your php.ini.
- # php -i | grep php.ini (will show the location)
# echo “extension=”imagick.so”” >> /your/path/php.ini
Restart the Apache service and create a phpinfo page in any of your accessible document-root folder to make sure that you are able to see the following similar to the screen-caps.
Useful Links :
Php Imagick home page
Solution for Fatal error: Class ‘Imagick’