- Install required packages
yum install php-pear php-devel gcc
- Install ImageMagick
yum install ImageMagick
yum install ImageMagick-devel
yum install ImageMagick-devel
- Install ImageMagick PHP Extension
pecl install imagick
echo "extension=imagick.so" > /etc/php.d/imagick.ini
echo "extension=imagick.so" > /etc/php.d/imagick.ini
-- OR
Enable remi repository for centos using below guide.
https://www.ubuntumint.com/install-remi-repo-in-rhel-centos-rocky-almalinux/
Once remi repository enabled, you can directly install it from repository using yum.
yum install php-pecl-imagick
- Restart Apache and check the installation
service httpd restart
No comments:
Post a Comment