The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ImageMagick installation on actual cPanel-server

Discussion in 'General Discussion' started by Thorsten H., Aug 12, 2016.

Tags:
  1. Thorsten H.

    Thorsten H. Active Member

    Joined:
    Jul 13, 2016
    Messages:
    30
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Germany
    cPanel Access Level:
    Root Administrator
    Hello,

    I tried to install imagemagick on my cpanel server because I need it for image manipulation with type 3.

    I ran the following scrips: /scripts/installimagemagick

    At the end of the installation I get the following error-messages (I will shorten them because they repeat):
    Code:
    1. Warning: Invalid argument supplied for foreach() in Command.php on line 249
    Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
    2. Notice: Undefined index: honorsbaseinstall in Role.php on line 173
    3. Notice: Undefined index: installable in Role.php on line 139
    4. Notice: Undefined index: phpfile in Role.php on line 204
    5. Notice: Undefined index: config_vars in Role.php on line 46
    6. Warning: Invalid argument supplied for foreach() in PEAR/Command.php on line 249
    Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Command.php on line 249
    All this lines apear 11 times, then comes the next one. And at the end:
    XML Extension not found
    The imagick.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20100525
    Tidying /usr/local/cpanel/3rdparty/php/56/etc/php.ini...
    No changes
    Tidying /opt/cpanel/ea-php56/root/etc/php.ini...
    No changes
    
    The problem is, that only parts of image magick are running, others don't. Exc. overlays and text manipulation.

    Code:
    /usr/bin/convert --version
    Version: ImageMagick 6.7.2-7 2016-06-16 Q16 ImageMagick: Convert, Edit, Or Compose Bitmap Images
    Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
    Features: OpenMP
    
    rpm -qa | grep ghost
    ghostscript-8.70-21.el6.x86_64
    ghostscript-fonts-5.50-23.2.el6.noarch
    ghostscript-devel-8.70-21.el6.x86_64
    
    And I don't know how to resolve that problem!

    Regards
    Thorsten
     
    #1 Thorsten H., Aug 12, 2016
    Last edited by a moderator: Aug 12, 2016
  2. Thorsten H.

    Thorsten H. Active Member

    Joined:
    Jul 13, 2016
    Messages:
    30
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Germany
    cPanel Access Level:
    Root Administrator
    root@xyz [~]# grep '' /etc/redhat-release /usr/local/cpanel/version /var/cpanel/envtype ; grep CPANEL= /etc/cpupdate.conf ; httpd -v ; php -v ; mysql -V
    /etc/redhat-release:CentOS release 6.8 (Final)
    /usr/local/cpanel/version:11.58.0.19
    /var/cpanel/envtype:kvm
    CPANEL=release
    Server version: Apache/2.4.23 (cPanel)
    Server built: Jul 20 2016 18:30:57
    PHP 5.6.24 (cli) (built: Jul 25 2016 13:08:41)
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with the ionCube PHP Loader v4.7.5, Copyright (c) 2002-2014, by ionCube Ltd., and
    with Zend Guard Loader v3.3, Copyright (c) 1998-2014, by Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies
    mysql Ver 14.14 Distrib 5.5.50, for Linux (x86_64) using readline 5.1
     
  3. Thorsten H.

    Thorsten H. Active Member

    Joined:
    Jul 13, 2016
    Messages:
    30
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Germany
    cPanel Access Level:
    Root Administrator
    After /scripts/installimagemagick I did the following:
    Bind ImageMagick into PHP using Imagick
    For your new ImageMagick installation to work with your web php scripts, you now need to bind it into PHP. To do this using Imagick, just follow the steps below.

    1. Login to WHM and navigate to the “Module Installers” option under “Software” in the left hand menu
    2. On the following page, select the “Manage” link beside the PHP Pecl language option
    3. Enter imagick into the “Install a PHP Pecl” field and then click the install button.
    I also edited the php.ini per MultiPHP INI-Editor , added

    ; ImageMagick nachinstalliert - 12.08.2016
    extension=imagick.so

    Installation went fine, without problems - Restart Apache - but no changes, same problem as discribed above.
     
    #3 Thorsten H., Aug 12, 2016
    Last edited by a moderator: Aug 24, 2016
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,787
    Likes Received:
    665
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Internal case CPANEL-7557 is open to address an issue where running /scripts/imagemagick on cPanel 58 with EasyApache 4 results in a failure because it looks for PHP in the wrong path. I'll update this thread with more information on the status of this case as it becomes available.

    In the meantime, you can manually install the Imagick PECL module with a command such as:

    Code:
    /opt/cpanel/ea-php56/root/usr/bin/pecl install imagick
    Note that EasyApache 4 includes support for multiple versions of PHP, so you must utilize the PHP 5.6 SCL if that's the version you want to install it on, as indicated by the above command.

    Update:

    The script to automatically install ImageMagick was removed as of version 58.0.25:

    Fixed case CPANEL-8229: Remove scripts/installimagemagick for 11.58.

    The following post explains how to manually install this software on your system:

    Installing Imagick CentOS 7

    You can then proceed to install the PECL module for Imagick, as referenced in the beginning of that thread.


    Thank you.
     
    #4 cPanelMichael, Aug 17, 2016
    Last edited: Sep 30, 2016
  5. ikillbill

    ikillbill Well-Known Member

    Joined:
    Feb 18, 2008
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Hi
    we still use EA3 on CentOS7 with cpanel 11.58 with PHP5.3

    what is the command line we could use to install this please?

    thanks
     
  6. ikillbill

    ikillbill Well-Known Member

    Joined:
    Feb 18, 2008
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    FYI, We did Thorsten H 's 1+2+3 steps as well, imagick is not wokring
     
    #6 ikillbill, Aug 24, 2016
    Last edited by a moderator: Aug 24, 2016
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,787
    Likes Received:
    665
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    What error message do you receive when using the "/scripts/installimagemagick" command?

    Thank you.
     
Loading...

Share This Page