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.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF