P r o f e s s i o n a l — M a n a g e m e n t — S o l u t i o n s
RSS icon Email icon Home icon
  • Install imagemagick with PHP imagick extension on Plesk CentOS VPS

    Posted on October 7th, 2009 Admin 2 comments

    Here are the steps and procedures you need to follow for install Imagemagick on Plesk VPS. login into the server and give the following commands, This requires yum to be installed on the server.

    yum install ImageMagick

    yum install ImageMagick-devel

    yum install php-pear [for PECL]

    pecl install imagick

    if you are getting the following error then you do not have compiler installed. You can do that using yum install gcc

    configure: error: no acceptable C compiler found in $PATH See `config.log’ for more details.”

    Restart the pecl install imagick command at the end you should something like this which means the build was successfully done and the extension was installed successfully.

    Build process completed successfully
    Installing ‘/usr/lib64/php/modules/imagick.so’
    install ok: channel://pecl.php.net/imagick-2.3.0
    configuration option “php_ini” is not set to php.ini location
    You should add “extension=imagick.so” to php.ini

    Then you need to include the extenion in php.ini. Here is how it needs to be done.

    echo “extension=imagick.so” > /etc/php.d/imagick.ini

    Restart apache

    /etc/init.d/httpd restart  OR service httpd restart

    Verify it using the following command

    php -m | grep imagick

    Thats it.. With these steps we were able to install imagemagik successfully on one of our server. Hope this helps you as well.

    Share/Save/Bookmark

     

    2 responses to “Install imagemagick with PHP imagick extension on Plesk CentOS VPS” RSS icon

    • Our VPS Hosting has just been connected and configured, and we actually plan of installing imagemagik. This could help me in troubleshooting just in case I encounter an error. Thanks for posting!

    • Your tutorial saved the day. Thanks for sharing.

      I have a server with Plesk 9.3 and so I was concerned about updating certain things outside of Plesk.

      I didn’t have the function phpize, however, and had to do “yum install php-devel” to get those development tools.

      What’s more is that I found that “yum install ImageMagick” installed version 6.3.2– not the current version 6.6. I’m not sure why b/c this means I’ll miss out on some new functions. Also, any Imagick version more than 2.2.1 didn’t work with the 6.3.2 version of ImageMagick. (they really need to come up with two more distinct names)

      Anyway, it’s all working with ImageMagick 6.3.2 and Imagick 2.2.1.


    Leave a reply

    You must be logged in to post a comment.