Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Install imagick in PHP 5.5. and 5.6 with EasyApache 4

Discussion in 'EasyApache' started by syedmaz, Jul 17, 2016.

Tags:
  1. syedmaz

    syedmaz Registered

    Joined:
    Apr 24, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    In my case I am using EasyApache 4 and PHP 5.6 and was unable to install imagick.

    # tail /home/domainname/public_html/error_log
    PHP Warning: PHP Startup: imagick: Unable to initialize module
    Module compiled with module API=20121212
    PHP compiled with module API=20131226
    These options need to match
    in Unknown on line 0

    pecl install imagick
    was giving error for php-devel module and phpize
    Can't find PHP headers in /opt/cpanel/ea-php56/root/usr/include/php


    Ran "yum install ea-php56-php-devel" and managed to install the php-devel successfully (Make sure install relevant php devel)

    Ran "pecl install imagick" successfully

    All good.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,925
    Likes Received:
    1,815
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Ensure you use the correct PECL binary associated with the version of PHP you are installing the module for. For instance, the path for PHP 5.6 is:

    Code:
    /opt/cpanel/ea-php56/root/usr/bin/pecl
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    eva2000 likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice