Search Knowledge Base
Table of Contents
< Go Back To Home
Print

How to install Imagick PHP extension (From WHM interface)

Installing the Imagick PHP extension in cPanel from the WHM (Web Host Manager) interface typically involves using EasyApache, the built-in Apache and PHP configuration tool. Here are the steps to do so:

Log in to WHM:

Open your web browser and navigate to WHM. You can access it by visiting https://your-server-IP:2087 or https://your-domain.com:2087. Replace “your-server-IP” with your server’s IP address or “your-domain.com” with your domain name. You’ll need to log in with your WHM credentials.

Search for “EasyApache”:

In the WHM search bar, type “EasyApache” and select the “EasyApache 4” option that appears in the menu.

Begin Customization:

In the EasyApache interface, click “Customize” next to the profile you want to modify. If you don’t have a custom profile, you can create one based on the default profile.

Select PHP Version:

In the “Apache Modules” section, click “PHP Extensions.” Here, you can select the PHP version you want to configure.

Configure Imagick Extension:

In the PHP Extensions list, search for “imagick” or “Imagick.” Check the box next to it to enable the Imagick extension.

Save and Build:

After selecting the Imagick extension, scroll to the bottom of the page and click “Review.” Review your configuration, and if everything looks good, click “Save and Build.”

Build Profile:

EasyApache will start building your custom profile with the Imagick extension. This process may take a few minutes.

Restart Apache:

Once the build is complete, you will be prompted to restart Apache. Click the “Restart Apache” button to apply the changes.

Verify Installation:

To confirm that Imagick is installed, you can create a PHP file (e.g., info.php) in your web directory with the following content:

<?php

phpinfo();

Access this file through a web browser, and in the PHP Info page, search for the “imagick” section. If it appears, Imagick is successfully installed.

By following these steps through the WHM interface, you can install the Imagick PHP extension on your cPanel server without having to access the command line. If you encounter any issues or need further assistance, you can contact your hosting provider’s support for help with this installation. You can also hire myglobalHOST for Server Management.