How To Install ImageMagick and PHP Imagick on CentOS 8

From DevOps Notebook
Revision as of 18:19, 8 October 2020 by MilosZ (talk | contribs) (Created page with "Install Epel repo in CentOS 8 first and enable PowerTools <pre> # dnf install -y epel-release # dnf config-manager --set-enabled PowerTools </pre> Install ImageMagick package...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Install Epel repo in CentOS 8 first and enable PowerTools

# dnf install -y epel-release
# dnf config-manager --set-enabled PowerTools

Install ImageMagick package in CentOS 8

# dnf install -y ImageMagick ImageMagick-devel

Use pecl to install ImageMagick module for php

# dnf install -y php php-devel php-pear make
# pecl install imagick
# echo "extension=imagick.so" > /etc/php.d/20-imagick.ini