Skip to main content

Installing Imagick Failing on Alma Linux

Comments

4 comments

  • rbairwell

    Background

    There's multiple versions of PHP installed - usually one for the use of WHM/cPanel itself (for things like WP-Toolkit and Roundcube) and then the EasyApache installations for use by clients website.

    As users could use multiple PHP versions, /usr/bin/php and /usr/local/bin/php are NOT "real PHP binaries" - but rather cPanel provided ones which map to the specific users PHP installation (see https://docs.cpanel.net/ea4/php/easyapache4-and-the-ea-php-cli-package/ ).

    The cPanel version of PHP is at /usr/local/cpanel/3rdparty/bin/php (currently 8.1.27) which the relevant user ones are in /opt/cpanel/ea-php83/root/usr/bin/php , /opt/cpanel/ea-php82/root/usr/bin/php etc etc.

    Background - PECL warning

    The "WARNING: channel "pecl.php.net" has updated its protocols,..." message is just a warning and will not stop or fail the installation of PHP modules on its own - however, it is advisable to run:

     /opt/cpanel/ea-php82/root/usr/bin/pecl channel-update pecl.php.net

    (for EasyApache PHP 8.2)  whenever you can just to ensure things are up to date.

    Checking installation

    To confirm installation of ImagieMagick on PHP 8.2 as root, you should be using:

    /opt/cpanel/ea-php82/root/usr/bin/php -i | grep -i 'ImageMagick version'

    which on my server returns "Imagick compiled with ImageMagick version => ImageMagick 6.9.12-93 Q16 x86_64 17898 https://legacy.imagemagick.org" and I followed the steps in https://support.cpanel.net/hc/en-us/articles/360037048673-How-to-Install-ImageMagick-for-EA-PHP for my AlmaLinux 8.9 server.

    Have you, once you installed the ImageMagick packages, gone through WHM->Software->Module Installers->PHP Perl and for each version then installed "imagick". Once done, did you then try restarting PHP FPM (if used)?

    ( btw cPRex , the package /var/cpanel/ea4/ea_php_cli.pm references https://go.cpanel.net/ea-php-cli which 404s - could you arrange to update the "go" link to https://docs.cpanel.net/ea4/php/easyapache4-and-the-ea-php-cli-package/ ?)

    0
  • cPRex Jurassic Moderator

    I'll let the team know about the go link!

    0
  • Catalin

    Any news related to this problem?

    0
  • cPRex Jurassic Moderator

    Catalin - what problem are you seeing at this time?

    0

Please sign in to leave a comment.