Call Us : +91 9048440922

ImageMagick Installation for PHP

Attention: open in a new window. PDFPrintE-mail

You need two components to make this work.

1.ImageMagick and its development libraries installed on the server.
2.Imagick.so which is the wrapper for php.

Imagick.so acts as a wrapper utilizing the native library that comes with ImageMagick library on the server.

To begin with you need to confirm all the latest ImageMagick modules and its libraries are installed on the server. The important thing to note is that 'pecl install imagick' will not work directly on the server. Nor will traditional steps given at,

http://forum.fdcservers.net/showthread.php?t=3392&page=1
OR
http://www.cpaneladmins.com/2009/11/10/how-to-install-imagick-for-php/

You need to install it manually with the latest ImagMagick library and the latest pecl from http://pecl.php.net/package/imagick.

1.Cd /usr/src/
2.yum install ImageM*
3.If you already have an ImageMagick library installed on the server, it is best you upgrade it. You can do so by 'yum reinstall ImageM*'.
4.After this you need to download the latest imagick native php extension from http://pecl.php.net/package/imagick.
5.wget http://pecl.php.net/get/imagick-3.0.1.tgz
6.At the time of writing this doc 3.0.1 was the latest version. Free free to modify with the latest after checking the build at the URL http://pecl.php.net/package/imagick.
7.tar -zxvf imagick-3.0.1.tgz
8.cd imagick-3.0.1
9.phpize
10../configure
11.make
12.make install
13.Once this is complete, the imagick.so file will have copied over to /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ based on your installation.
14.Header files also will have copied over to /usr/local/include/php/
15.vi  /usr/local/lib/php.ini
16.Add “extension=imagick.so” to php.ini above.
17.Check phpinfo.php and it will now reflect the ImageMagick extension. phpinfo

Warning: Creating default object from empty value in /home/leelahos/public_html/libraries/joomla/application/module/helper.php on line 162

Warning: Creating default object from empty value in /home/leelahos/public_html/libraries/joomla/application/module/helper.php on line 162

Latest Articles

cPanel Announced the Launch o...

cPanel Announced the Launch of 11.34 cPanel Announces the ....

Why your company needs a Priv...

Why do you need a private chat server There are various ....

Customer Quotes

  • Arun Christudas
    Twitacc.com

    They have worked on many of my projects - from redesigning a few web pages to designing a complete website site and I must say, their designs are incredible and their work is of top quality. These guys are sensible and sure knows what they do. Would recommend to any one looking for web designing & development.