Imagick support

If you have shell access to your server, you can install the imagick module with the following shell command:

Bash:
pecl install imagick

If that fails - which it currently does for PHP 8, the long way around is the following string of commands:

Bash:
git clone https://github.com/Imagick/imagick
cd imagick
phpize && ./configure
make
make install
 
upgraded to php8,
can't get imagick to work.

pecl nor phpize are available. is this something to install for php8?
 
cpanel easyapache running on centos7
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.
imagick.jpg
AdminCP -> Tools -> PHP Info
Should now contain imagick section when running under PHP 8.
imagick2.jpg
 
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
Source: https://www.xf2addons.com/threads/imagick-installation-instructions-for-php-8.960/
 
A general 'Thanks' to everybody to who's given input on the topic of ImageMagick & PHP8. 👍

After going to PHP 8 I switched over to using GD but the resized images just weren't as sharp as when using ImageMagick. I'm back up & running with ImageMagick.
 
These instructions are for users with the following:
CENTOS 7.9
WHM/cPanel
PHP 8.0

Log into terminal as user:
$ yum install ImageMagick ImageMagick-devel -y
$ /opt/cpanel/ea-php80/root/usr/bin/pecl install imagick
 
These instructions are for users with the following:
CENTOS 7.9
WHM/cPanel
PHP 8.0

Log into terminal as user:
$ yum install ImageMagick ImageMagick-devel -y
$ /opt/cpanel/ea-php80/root/usr/bin/pecl install imagick
Is yum installing the latest ImageMagic version 7 or is it still installing version 6?
 
Top Bottom