Tag: ImageMagick

  • How to check if ImageMagick is installed?

    How to check if ImageMagick is installed?

    How to find ImageMagick is installed on the server, run

    which convert
    

    Usually, it will be installed at – /usr/bin/convert

    ImageMagick convert  location
    On Ubuntu/Debian, you can run the command

    dpkg -l | grep imagemagick
    

    ImageMagic Ubuntu dpkg

    On RHEL/CentOS/AlmaLinux, use the command

    yum list | grep -i image 
    

    To find the version of ImageMagick installed on your computer, run

    convert -version
    

    ImageMagick find version

    Back to ImageMagick

  • Install ImageMagick PHP module in Cpanel Server

    To install ImageMagick on Cpanel Server, in root SSH, run

    yum install ImageMagick ImageMagick-devel -y
    

    To install PHP Module, login to WHM as user root.

    WHM > Software > Module Installers

    WHM Software Module Installers

    Click on Manage link for PHP Pecl.

    Cpanel PHP Pecl Installer

    Select the PHP version from drop down list on which you need ImageMagick PHP module installed.

    Search for “imagick”.

    imagick

    Click on install link to install imagick PHP module.

    After installation, you can verify imagick module work with command

    [root@server ~]# php -m| grep imag
    imagick
    [root@server ~]# 
    

    phpinfo will show

    To install with command line, use

    /opt/cpanel/ea-php74/root/usr/bin/pecl uninstall imagick
    /opt/cpanel/ea-php74/root/usr/bin/pecl install imagick
    

    After installing, restart apache with

    systemctl restart httpd
    

    See Cpanel Server