How to install ImageMagick and PHP-imagick on Linux Plesk

The installation for ImageMagick and PHP-imagick is pretty simple for Linux Plesk server. Following the steps to install them on Plesk server:

ImageMagick Installation:

[[email protected] ~]# yum install ImageMagick
[[email protected] ~]# yum install ImageMagick-devel

PHP-imagick Installation:
[[email protected] ~]# yum install gcc
[[email protected] ~]# yum install make automake
[[email protected] ~]# yum install php-pear
[[email protected] ~]# yum install php-devel
[[email protected] ~]# pecl install imagick

This will create a file under /usr/lib/php/modules/ on 32-bit operating machine and /usr/lib64/php/modules/ on 64-bit operating system. You will have to add this extension in your global (loaded PHP condifuration file). You will need to add following line to enable extension:

extension = “”

After adding the above extension, you will need to restart your Apache service. You can use the following command to restart it:

[[email protected] ~]# /etc/init.d/httpd restart

Now, you can verify your installation using the following commands:

For ImageMagick:

[[email protected] ~]# which convert

Output should be as follow:


For PHP-imagick:

[[email protected] ~]# php -m | grep imagick

Output should be as follow:


Leave a Reply