Install Imagick on Cpanel Server
Following commands will guide you through imagemagick and imageck installation
Imagemagick Installation
cd /usr/local/src/
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
tar zxvf ImageMagick.tar.gz
cd ImageMagick-*
./configure
make
make install
Then install the perl module:
cd PerlMagick
perl Makefile.PL
make
make install
Confirm the installation
which convert
/usr/local/bin/convert
Imagick installation in php
wget http://pecl.php.net/get/imagick-2.3.0.tgz
tar -zxvf imagick-2.3.0.tgz
cd imagick-2.3.0
phpize
./configure
make
make install
vi /usr/local/lib/php.ini
add the below line
extension=”imagick.so”
Now restart the webserver
/scripts/restartsrv_httpd
No comments:
Post a Comment