Imagemagick on cPanel
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
-
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. 0 -
I'm glad you found a good workaround - let us know what you find with that configuration file! 0 -
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. 1 -
@kodeslogic - what else was in your disable line? The only recommendation I have would be to add one at a time back and see where the breakage happens. 0 -
@cPRex I had "show_source, system, shell_exec, passthru, proc_open, mail" 0 -
Thanks for the list - unfortunately, per my usual luck, I can't reproduce the issue with that list on my end. 0 -
Thanks kodeslogic it works for me
0
Please sign in to leave a comment.
Comments
7 comments