The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Install imagick in PHP 5.5. and 5.6 with EasyApache 4

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

  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:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    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.
     
    eva2000 likes this.
Loading...

Share This Page