YellowboxNL

Member
Feb 18, 2012
6
0
51
cPanel Access Level
DataCenter Provider
I'm trying to install Imangemagick on cpanel, but got the following error:

running: make INSTALL_ROOT="/root/tmp/pear/pear-build-rootEH0V08/install-imagick-3.7.0" install
Parse /root/tmp/pear/imagick/ImagickPixelIterator.stub.php to generate /root/tmp/pear/imagick/ImagickPixelIterator_arginfo.h
make: *** [Makefile:195: /root/tmp/pear/imagick/ImagickPixelIterator_arginfo.h] Error 255
ERROR: `make INSTALL_ROOT="/root/tmp/pear/pear-build-rootEH0V08/install-imagick-3.7.0" install' failed

I get this error by running : /opt/cpanel/ea-php81/root/usr/bin/pecl install imagick

But when we run "/opt/cpanel/ea-php82/root/usr/bin/pecl install imagick" it's installing without any warnings and successfull added.

Same when we try it though WHM, the PHP81 fails, en PHP82 works, but we need it for PHP81 !

More people have this problem? And did anyone solve it?

Regards,
Harland
 

YellowboxNL

Member
Feb 18, 2012
6
0
51
cPanel Access Level
DataCenter Provider
Problem is solve, Think there was something wrong in the php.ini

Solution, but not found the problem:
cd /opt/cpanel/ea-php81/root/etc
cp php.ini php.ini.backup
cp /opt/cpanel/ea-php82/root/etc/php.ini php.ini
changed the session.save_path back to "/var/cpanel/php/sessions/ea-php81"
/opt/cpanel/ea-php81/root/usr/bin/pecl install imagick

And it works.

After that i copied back the old php.ini, have to look in it what may cause the problem.
 

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
576
266
138
IN
cPanel Access Level
Root Administrator
I face the same issue with php8.1 and 8.2 and noticed removing "exec" and "open" from php.ini disable_fuction is not enough. I was able to enable Extension imagick after removing all disable_fuction in my php.ini. So I am exactly not sure which disable_fuction caused the problem.
 

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
576
266
138
IN
cPanel Access Level
Root Administrator
@cPRex

I had "show_source, system, shell_exec, passthru, proc_open, mail"