How to install imagick PHP extension Print

  • 38

If you require imagick support in your VPS, follow these steps in order to install it:

  1. Install ImageMagick if it is not installed by running: yum install imagemagick imagemagick-devel
  2. Install imagick PECL extension by running:
    1. pecl download imagick
    2. tar -xzf imagick-X.X.X.tgz
    3. cd imagick-X.X.X
    4. phpize
    5. ./configure
    6. make && make install
  3. add extension=imagick.so to php.ini
  4. check that the extension loads properly by looking at the output of php -i
  5. restart apache by running: service httpd restart

These instructions are valid for CentOS installations.


Was this answer helpful?

« Back