ImageMagick is a free software tool utilized for editing and converting various image file formats. The ImageMagick extension is widely used in the Linux community as it can be seamlessly integrated with PHP scripts for image file manipulation.
Follow the steps below to install the Imagick extension in cPanel.
Step 1: Log into the WHM panel as the root user.
Step 2: In the Home section, navigate to the Software section.
Step 3: Choose Module Installers from the Software section.
Step 4: Click on Manage next to PHP PECL.
Step 5: Select the PHP version from the dropdown menu and click Apply.
Step 6: Enter "Imagick" (without quotes) in the search box and click Go.
Step 7: Click Install to begin the installation of the Imagick extension.
Once the Imagick Module is successfully installed, you can verify it by going to Home >> Software >> Module Installer >> PHP PECL, selecting the appropriate PHP version from the dropdown, and clicking Apply.
Scroll down to view the Installed PHP PECL(s) modules and confirm that the Imagick Module is present.
Step 8: Please ensure to restart both the PHP-FPM service and the Apache service for the installation to take effect.
The application or the PHP Info page should now be able to detect and display the Imagick extension.