How to install ImageMagick / Imagick on AlmaLinux 9 with PHP 8.1
I've upgraded my server to AlmaLInux 9 (with cPanel). I'm running PHP 8.1
I've been able to install Imagemagick 7.1, but PHP keeps using Imagemagick Version 6.9. Trying to get PHP to use version 7.1
Here's what comes up with I do print_r(imagick::getVersion()); in PHP: [versionNumber] => 1693 [versionString] => ImageMagick 6.9.13-11 Q16 x86_64 18407 https://legacy.imagemagick.org/
Here's what comes up with I do convert --version in the shell: WARNING: The convert command is deprecated in IMv7, use "magick"
Version: ImageMagick 7.1.1-33 Q16-HDRI x86_64 22263 https://imagemagick.org/ Copyright: (C) 1999 ImageMagick Studio LLC License: https://imagemagick.org/script/license.php Features: Cipher DPC HDRI OpenMP(4.5) Delegates (built-in): bzlib fontconfig freetype jng jpeg lzma png tiff webp x xml zlib zstd Compiler: gcc (11.4)
Here's what comes up with I do magick -version in the shell: Version: ImageMagick 7.1.1-33 Q16-HDRI x86_64 22263 https://imagemagick.org/ Copyright: (C) 1999 ImageMagick Studio LLC License: https://imagemagick.org/script/license.php Features: Cipher DPC HDRI OpenMP(4.5) Delegates (built-in): bzlib fontconfig freetype jng jpeg lzma png tiff webp x xml zlib zstd Compiler: gcc (11.4)
So it seems like its installed on the server, but PHP still using the wrong version.
Spent another 3 hours on it last night installing and re-installing everything I could find. Is it true that I also need to install phpize and php-devel to get this to work? both of those software packages have been difficult for me to install. The server keeps rejecting my attempts to get them installed. I am at the ponit where I may have to download them manually to get them to install, but i can't even find a version that is compatible with AlmaLInux 9
Any ideas?