Bobcares

Easyapache 4 Imagick: How to set up?

by | May 13, 2023

Let us take learn how to enable Imagick with EasyApache 4 with the support of our Server management support services at Bobcares.

What are EasyApache 4 and Imageick?

easyapache 4 imagick

EasyApache 4 is a software package that web hosting companies use to create and configure the Apache web server, as well as its associated modules and extensions.

It enables server administrators to tailor their Apache installations with the modules and functionality they require without having to compile and install them manually.

Imagick is a PHP plugin that enables image manipulation and conversion in PHP applications. It has a robust collection of image processing features and supports a variety of picture formats.

PHP developers can simply produce thumbnail pictures, resize and crop photos, add numerous filters and effects, and more using Imagick.

We may add the Imagick extension as part of the PHP installation when we use EasyApache 4 to create the Apache server. This enables us to use Imagick’s sophisticated image processing capabilities in our PHP programs.

How to enable Imagick with EasyApache 4?

Follow the steps given below to set this up:

  1. Log in as the root user to the server.
  2. Navigate to the EasyApache 4 interface.
  3. Choose the PHP version that we wish to set.
  4. Go to the “Extensions” tab.
  5. Enter “imagick” into the search bar.
  6. To activate it, check the box next to “imagick”.
  7. To review the setup, click the “Review” button.
  8. To construct the new PHP configuration with the Imagick extension enabled, click the “Save and Build” button.

After we’ve enabled Imagick, we can begin utilizing it in your PHP programs.

Enable Imagick with EasyApache 4 via CLI

Follow the steps given below to set this up via CLI:

  1. Firstly, connect to the server via SSH.
  2. Now that we’ve connected into the server, we need to make sure ImageMagick and ImageMagick-devel are installed on the machine.

    To install the same, perform the following command.

    yum install ImageMagick ImageMagick-devel pcre-devel

  3. To begin, we should determine which PHP version the website is running.

    To do so, kindly create a php.info page in the website’s document root and call the site together with php.info (eg: http://domain.com/info.php).

Steps to create php.info file

The steps for creating a php.info file are given below to continue setting up the easyapache 4 imagick.

  1. Navigate to the website’s document root. Then run the following command to create a file.

    Vim info.php

    Add the line given below to this file:

    ? phpinfo(); ?

  2. To save the file, press the esc key on the keyboard and write the following command, then press enter:

    wq!

  3. Change the ownership of info.php to the matching cPanel account login.

    chown (username):(username) info.php

    Check the php version of the website by typing the domain followed by info.php.

  4. Now, depending on the PHP version used by the website, we may run either of the following PECL commands to install ImageMagick on the server.

  5. We may proceed by pressing the enter key.
  6. We have now installed Imagick successfully. We can also confirm this via the php info page.

[Need assistance with similar queries? We are here to help]

Conclusion

To sum up we have now seen how to enable Imagick with EasyApache 4 with the support of our tech team.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.