To install imagick on CENTOS 7 with PHP 8 installed
1) Login to WHM as root.
2) Open Terminal: WHM -> Server Configuration -> Terminal
Code:
# git clone https://github.com/Imagick/imagick
# cd imagick
# /opt/cpanel/ea-php80/root/usr/bin/phpize
# ./configure --with-php-config=/opt/cpanel/ea-php80/root/usr/bin/php-config
# make
# make install
# exit
3) Edit PHP 8 INI: WHM -> Software -> MultiPHP INI Editor -> Editor Mode -> ea-php80
Insert code below and save:
Code:
[imagick]
extension = "imagick.so"
4) Restart Apache: WHM -> Restart Services -> HTTP Server (Apache)
5) Reopen Terminal to cleanup install: WHM -> Server Configuration -> Terminal
Remove install directory.
Code:
# rm -f -r imagick
# exit
(This will delete the temporary imagick directory including all files and subdirectories.)
6) Verify imagick is now running under PHP 8: Open XenForo AdminCP.
Server Environment Report should now report Imagick Support as "Yes" when running under PHP 8.
View attachment 252224
AdminCP -> Tools -> PHP Info
Should now contain imagick section when running under PHP 8.
View attachment 252225