Search code examples
phpimagick

installed imagick not seen by php_info


I am not very experienced on linux, and need help here. I have installed ImageMagick, and you can see the version below:

[root@zpanel temp]# convert -version

Version: ImageMagick 6.8.5-4 2013-05-02 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib fontconfig freetype jng jp2 jpeg lcms png ps tiff x xml zlib

But I cannot see it in my php_info(check url : http://www.galepress.com/phpinfo.php). I have restarted httpd etc, but no good. ps : I have also run the following command and get the warnings:

[root@zpanel temp]# php -m | grep imagick

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/src/imagick-3.0.1/modules/imagick.so' - libMagickWand.so.2: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/imagick.so' - /usr/lib64/php/modules/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0

Solution

  • How to install php5-imagick package on Debian:

    apt-get install php5-imagick
    

    In case of dependencies problem you may need to try installing the older version:

    apt-get install php5-imagick/oldstable
    

    If everything goes well, don't forget to restart the Apache service:

    /etc/init.d/apache2 restart