-
Install imagemagick with PHP imagick extension on Plesk CentOS VPS
Posted on October 7th, 2009 2 commentsHere 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 gccconfigure: 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.iniThen you need to include the extenion 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
Thats it.. With these steps we were able to install imagemagik successfully on one of our server. Hope this helps you as well.



amazedgirl99 November 17th, 2009 at 10:33