Problem installing Imagick on Centos 7
Hello everyone, I'm trying to install Imagick module for PHP 8.2:
condor1634:~# /opt/cpanel/ea-php82/root/usr/bin/pecl install imagick
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading imagick-3.7.0.tgz ...
Starting to download imagick-3.7.0.tgz (360,138 bytes)
.........................................................................done: 360,138 bytes
33 source files, building
running: phpize
condor1634:~#
As you can see after running phpsize the script stops working, this is the first time I see this, on my other servers it will install fine, any idea what could be the problem?
Thanks!
-
Have you installed the ImageMagick packages before hand and then tried installing the PECL packages via the WHM->Software->Module Installers as per https://support.cpanel.net/hc/en-us/articles/360037048673-How-to-Install-ImageMagick-for-EA-PHP ?
0 -
Hello, yes I tried, the exact same thing happens, it's stuck in phpsize
0 -
The fact it seems to be stopping before it even checks for ImagickMagick is odd (I assume " convert --version " provides details of the imagemagick install).
If you try the first steps of a manual PECL install of ImageMagick:
cd imagemagick_test/
wget https://pecl.php.net/get/imagick-3.7.0.tgz
tar -xvf imagick-3.7.0.tgz
cd imagick-3.7.0
/opt/cpanel/ea-php82/root/usr/bin/phpizedo you get output such as:
Configuring for:
PHP Api Version: 20220829
Zend Module Api No: 20220829
Zend Extension Api No: 420220829?
If you don't, I would guess your PHP 8.2 installation is somehow b0rked and suggest trying removing and then reinstalling it via EasyApache to see if that makes a difference.
0 -
Can you get back with the output of the below command?
grep "disable_functions" /opt/cpanel/ea-php82/root/etc/php.ini
Kodeslogic Web Solutions - cPanel Certified Partner
Server Management Support ★ Outsourced Web Hosting Support ★ Submit a ticket
Skype - live:kodeslogic1 -
Hi, yes:
condor1634:~# grep "disable_functions" /opt/cpanel/ea-php82/root/etc/php.ini
disable_functions = show_source, system, shell_exec, passthru, exec, popen
condor1634:~#1 -
Also, if I run phpsize manually on a downloaded imagick seems to work:
condor1634:~/imagick-3.7.0# /opt/cpanel/ea-php82/root/usr/bin/phpize
Configuring for:
PHP Api Version: 20220829
Zend Module Api No: 20220829
Zend Extension Api No: 420220829
condor1634:~/imagick-3.7.0#0 -
Temporary remove "show_source, system, shell_exec, passthru, exec, popen" and try to install imagick using the below command:
/opt/cpanel/ea-php82/root/usr/bin/pecl install imagick
Once it is installed you re-add the disable_fuctions.
Kodeslogic Web Solutions - cPanel Certified Partner
Server Management Support ★ Outsourced Web Hosting Support ★ Submit a ticket
Skype - live:kodeslogic1 -
Thank you very much!!! this seems to work.
0 -
I'm glad that helped!
Kodeslogic Web Solutions - cPanel Certified Partner
Server Management Support ★ Outsourced Web Hosting Support ★ Submit a ticket
Skype - live:kodeslogic0 -
Same issue and resolution with AlmaLinux v8.9.0
Thanks!
0
Please sign in to leave a comment.
Comments
10 comments