Is it possible to install Imagemagick on Centos 7?

Bryan McClure

Well-known member
Registered
Joined
Jul 20, 2016
Messages
271
Points
18
I am going to upgrade to Centos 7 for my vps hosting but I don't know I can install imagemagick on this linux distribution or not. ImageMagick is posisble for Centos 7?
 

farhan786

New member
Registered
Joined
Nov 23, 2017
Messages
12
Points
0
There is an RPM for CentOS 7. You should be good just running:

Code:
wget http://www.imagemagick.org/download/...2-6.x86_64.rpm
rpm -uvh ImageMagick-6.9.2-6.x86.rpm
If that doesn't work try from source like this:

Code:
yum install ghostscript-fonts
cd /usr/local/src
wget http://www.imagemagick.org/download/ImageMagick.tar.gz
tar xvzf ImageMagick.tar.gz
cd ImageMagick-6.9.2
./configure && make
If everything went well then run:

Code:
make install
The other option is to ask your host for assistance with installing this. We do this sort of thing for customers at LiquidWeb all the time. It's considered Best Effort but this is rather easy. I've even installed a pretty custom list of delegates for a customer to use with ImageMagick. If you plan to use this with PHP you will likely need MagickWand. If you need assistance with installing MagickWand let me know.
 

KevinHV

Member
Registered
Joined
Sep 8, 2016
Messages
57
Points
8
Here is another way to install

yum -y install ImageMagick-devel ImageMagick-c++-devel ImageMagick-perl

Installing the imagemagick PHP extensions for PHP versions 5.4, 5.5, 5.6, 7.0 and 7.1

for phpver in $(ls -1 /opt/cpanel/ |grep ea-php | sed 's/ea-php//g') ; do
printf "\autodetect" | /opt/cpanel/ea-php$phpver/root/usr/bin/pecl install imagick
echo 'extension=imagick.so' >> /opt/cpanel/ea-php$phpver/root/etc/php.d/imagick.ini
done
/scripts/restartsrv_httpd
/scripts/restartsrv_apache_php_fpm

Test to make sure imagemagick is installed:
/usr/bin/convert --version

Test to make sure the PHP extensions loaded:

for phpver in $(ls -1 /opt/cpanel/ |grep ea-php | sed 's/ea-php//g') ; do
echo "PHP $phpver" ; /opt/cpanel/ea-php$phpver/root/usr/bin/php -m |grep imagick
done

Output

PHP 54
imagick
PHP 55
imagick
PHP 56
imagick
PHP 70
imagick
PHP 71
imagick
 
Newer Threads
Replies
0
Views
1,337
Replies
7
Views
3,010
Replies
3
Views
1,752

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top