Install ImageMagick With PHP Imagick Extension On Plesk CentOS VPS
Here are the steps and procedures you need to follow for install Imagemagick on Plesk VPS. login into the server and give the following commands, This requires yum to be installed on the server.
yum install ImageMagick
yum install ImageMagick-devel
yum install php-pear [for PECL]
pecl install imagick
if you are getting the following error then you do not have compiler installed. You can do that using yum install gcc
configure: error: no acceptable C compiler found in $PATH See `config.log’ for more details.”
Restart the pecl install imagick command at the end you should something like this which means the build was successfully done and the extension was installed successfully.
Build process completed successfully
Installing ‘/usr/lib64/php/modules/imagick.so’
install ok: channel://pecl.php.net/imagick-2.3.0
configuration option “php_ini” is not set to php.ini location
You should add “extension=imagick.so” to php.ini
Then you need to include the extension in php.ini. Here is how it needs to be done.
echo “extension=imagick.so” > /etc/php.d/imagick.ini
Restart Apache
/etc/init.d/httpd restart OR service httpd restart
Verify it using the following command
php -m | grep imagick
That’s it.. With these steps we were able to install imagemagik successfully on one of our server. Hope this helps you as well.