Installing imagick after Elevate
Hi,
I successfully ran the elevate-script today for my test-server. I cleared the blockers and upgraded Cloudlinux 7 to Cloudlinux 8. Everything seems ok, at least the server is answering, sites are working etc.
I noticed that my PHP-versions (8.1, 8.2 and 8.3) are missing "Imagick" package which I had installed using PECL. The older system Cloudlinux 7 had them installed, except the PHP 8.3.
Now I'm getting this error when trying to install PECL package "Imagick".
This system is receiving updates from CloudLinux Network server. Last metadata expiration check: 2:04:50 ago on Mon Apr 22 12:47:46 2024. Package ImageMagick-devel-6.9.12.93-1.el8.x86_64 is already installed. Dependencies resolved. Nothing to do. Complete! 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 Configuring for: PHP Api Version: 20220829 Zend Module Api No: 20220829 Zend Extension Api No: 420220829 /usr/bin/perl: symbol lookup error: /usr/local/lib64/perl5/auto/List/Util/Util.so: undefined symbol: Perl_xs_version_bootcheck ERROR: `phpize' failed
Please help me. I've got no idea how to proceed or what is the problem.
I've already tried to run the channel-update command as root and it can't find PECL command when on command line. So I ran it this way:
/opt/cpanel/ea-php82/root/usr/bin/pecl channel-update pecl.php.net
After that the "channel-update" message is gone, but I'm still getting the same error and the same error message.
Running command "locate imagick.so", says this:
/opt/cpanel/ea-php80/root/usr/lib64/php/modules/imagick.so
/opt/cpanel/ea-php81/root/usr/lib64/php/modules/imagick.so
/opt/cpanel/ea-php82/root/usr/lib64/php/modules/imagick.so
Anyway. The PECL Module installer interface says there is no imagick package installed.
Phpinfo() PHP-function doesn't list Image Magick extension.
-
Hey there! Have you confirmed the prerequisites are installed on the machine?
dnf install ImageMagick ImageMagick-devel -y
Until those are in place you wouldn't be able to install IMagick with Pecl tools.
https://support.cpanel.net/hc/en-us/articles/360037048673-How-to-Install-ImageMagick-for-EA-PHP
0 -
Both ImageMagick packages were installed. I had already read the article you provided and I did check the packages.
But the PECL problem is solved, some how. I have no idea how or why. There must be some user-error during the first try, something what I did wrong or some mistake I did.
I did rollback the cPanel server from backups. I started everything from the beginning.
This time I had no interrupts during the Elevate process. The first try I had couple of interrupts and I had to check the leapp-report and do some actions and then continue the process. This time everything did go smoothly. Even though the server was in the same state as on the first run.
Anyway PECL packages are working now. I'm running currently Cloudlinux 8.9 and cPanel 118.0.8 (stable release). Everything seems ok at the moment.
0 -
I'm glad to hear things are working now, even if we don't have a good explanation.
0
Please sign in to leave a comment.
Comments
3 comments