Archive for the Installations Category

ImageMagick With PHP-imagick Installation On Plesk Server

If you want to install ImageMagick with PHP-imagick module then follow the below simple steps ::

ImageMagick Installation

[root@server ~]# yum install ImageMagick
[root@server ~]# yum install ImageMagick-devel

PHP-imagick Installation

[root@server ~]# yum install gcc
[root@server ~]# yum install make automake
[root@server ~]# yum install php-pear

[root@server ~]# yum install php-devel
[root@server ~]# pecl install imagick

This will  create a  imagick.so file under [/usr/lib/php/modules/] for 32 Bit machine or [/usr/lib64/php/modules/imagick.so] for 64 Bit machine and you can enable it by adding the below entry in php.ini file

extension = "imagick.so"

or

 echo "extension=imagick.so" > /etc/php.d/imagick.ini

and finally restart  httpd service for the changes to take effect .

[root@server ~]# /etc/init.d/httpd restart

You can verify  the installation of both the modules using the below commands ::

For ImageMagick

[root@server ~]# which convert
/usr/bin/convert

For PHP-imagick

[root@server ~]# php -m | grep  imagick
imagick

That’s all , easy isn’t.