Wednesday 20 March 2024

Install imagick extension in PHP

  • Install required packages
yum install php-pear php-devel gcc
  • Install ImageMagick
yum install ImageMagick
yum install ImageMagick-devel 
  • Install ImageMagick PHP Extension
pecl install imagick
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:

Could not start a new session. Response code 500. Message: Failed to read marionette port

There is bug in firefox binary installed using apt/snap, I faced same issue when I installed firefox from apt package respository. I solved ...