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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED Installing PHP Pecl imagick question

Discussion in 'EasyApache' started by marioderksen, Feb 9, 2017.

Tags:
  1. marioderksen

    marioderksen Registered

    Joined:
    Jul 23, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    Hi Forum,

    I have read all kinds of threads on this forum to install Imagick.
    What ever I do Imagick is won't work.

    I'm not sure of the problem has to do with phpize version misalignment below
    but I'm pretty sure it does, see below:

    PHP Api Version: 20121113
    Zend Module Api No: 20121212
    Zend Extension Api No: 220121212

    Now my questions
    Q1: Does this indeed messes up imagick to function properly?
    Q2: How do I get these versions aligned?
     
  2. marioderksen

    marioderksen Registered

    Joined:
    Jul 23, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    I fixed this myself after some further digging around.
    It seems that these versions indeed need to match otherwise it won't work!!!

    I showed phpinfo() on the web page that needed imagick.
    There I saw PHP API = 20151012

    Then I searched for the bin_dir path in the phpinfo() page.
    This is /opt/cpanel/ea-php70/root/usr/bin

    I made a config change for pecl by this command:
    pecl config-set bin_dir /opt/cpanel/ea-php70/root/usr/bin

    reinstall the module... and see if the versions match now! <-- I forgot to mention this

    After apache restart still no luck.
    After a reboot... Yes!
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm happy to see you were able to resolve the issue. The following thread is also helpful when installing PECL modules via EasyApache 4:

    SOLVED - Pecl with EA4

    Thanks!
     
Loading...

Share This Page