Instalacion de imagick en php y Centos

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 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.

Anuncios

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s

A %d blogueros les gusta esto: