How to Install ImageMagick on cPanel Almalinux Server ?
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Install the operating system's ImageMagick packages if not already installed.
- CentOS 7 or CloudLinux 7
-
yum install ImageMagick ImageMagick-devel -y
- AlmaLinux 8/9, CloudLinux 8/9, Rocky Linux 8/9
-
dnf config-manager --set-enabled epel
-
dnf install ImageMagick ImageMagick-devel -y
- Ubuntu
-
apt install imagemagick magickwand
- Log in to WHM as the root user.
- Navigate to "Home / Software / Module Installers"
- Click on the "Manage link" to the right of "PHP PECL."
- Select your desired version of PHP from the drop-down menu.
- Click the "Apply" button.
- Under "Install a PHP Pecl," enter "imagick" (without the quotes).
- Click the "Install Now" button.
- Update CageFS if it is installed.
- Navigating to "Home / Plugins / CageFS."
- Click the "Update CageFS Skeleton" button.
- Restart PHP-FPM if it is installed.
- Navigate to "Home / Restart Services / PHP-FPM service for Apache."
- Click the "Restart" button.