SOLVED Installing PHP Pecl imagick question

marioderksen

Registered
Jul 23, 2007
2
0
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?
 

marioderksen

Registered
Jul 23, 2007
2
0
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!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,903
2,237
463
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!