IMAGICK MAGIC WHM/CPANEL CENTOS 6+ SERVERS Print

  • 0

The key to imagick installation for WHM/cPanel CentOS 6+ servers comes in two parts.

Folks trying to install this and cannot figure out why it is not working/showing in their php info screens are almost always missing at least one of the two pieces.

First piece - SSH into the server and run the following script which installs the bases packages:

/scripts/installimagemagick


Second piece - now copy and paste the following section completely into your ssh client in full:

/usr/local/cpanel/3rdparty/bin/perl -e 'use Cpanel::LangMods; for my $module (@ARGV){print "\n==== Uninstall $module ====\n"; print Cpanel::LangMods::doaction("php-pecl","uninstall",$module); print "\n====\n";print "\n==== Install $module ====\n"; print Cpanel::LangMods::doaction("php-pecl","install",$module); print "\n====\n";}' imagick

Restart Apache: service httpd restart

Extra: If you plan on using ImageMagick in perl scripts:

yum install ImageMagick-perl

Restart Apache: service httpd restart

CloudLinux users note - should also run cagefsctl --force-update to update the end user cages

Was this answer helpful?

« Back