Imagick disappeared after a reboot

vpswing

Well-Known Member
Jun 4, 2014
48
6
58
cPanel Access Level
Root Administrator
We're currently running v86.0.18 of cPanel. Before that, there was the link/message asking to reboot for the new updates to take effect. After the reboot, ImageMagick disappeared.

ImageMagick installed
[root@host2 centos]# rpm -qa|grep ImageMagick
ImageMagick-6.9.10.68-3.el7.x86_64
ImageMagick-devel-6.9.10.68-3.el7.x86_64

Module is "loaded" via the zzzzzzz-pecl.ini file
[root@host2 centos]# cat /opt/cpanel/ea-php70/root/etc/php.d/zzzzzzz-pecl.ini
extension="imagick.so"

[root@host2 centos]# cat /opt/cpanel/ea-php73/root/etc/php.d/zzzzzzz-pecl.ini
extension="imagick.so"

Checking for the module
[root@host2 centos]# /opt/cpanel/ea-php70/root/bin/php -m |grep -i pdo
PDO
pdo_mysql
pdo_sqlite
[root@host2 centos]# /opt/cpanel/ea-php70/root/bin/php -m |grep -i image
<nothing is shown>

*same when running: [root@host2 centos]# /opt/cpanel/ea-php73/root/bin/php -m |grep -i image

I also restarted httpd and viewed the web page with "phpinfo()" code - also nothing.

Modules Loaded in Apache:
[root@host2 centos]# httpd -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_prefork_module (shared)
cgi_module (shared)
access_compat_module (shared)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
deflate_module (shared)
dir_module (shared)
expires_module (shared)
filter_module (shared)
headers_module (shared)
include_module (shared)
log_config_module (shared)
logio_module (shared)
mime_module (shared)
negotiation_module (shared)
proxy_module (shared)
proxy_fcgi_module (shared)
proxy_http_module (shared)
proxy_wstunnel_module (shared)
rewrite_module (shared)
setenvif_module (shared)
slotmem_shm_module (shared)
socache_dbm_module (shared)
socache_shmcb_module (shared)
socache_redis_module (shared)
status_module (shared)
unique_id_module (shared)
unixd_module (shared)
userdir_module (shared)
bwlimited_module (shared)
ssl_module (shared)
security2_module (shared)
ruid2_module (shared)
[root@host2 centos]#

Modules loaded in PHP7.0
[root@host2 centos]# /opt/cpanel/ea-php70/root/bin/php -m
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
filter
ftp
gd
hash
imap
intl
json
libxml
mbstring
mcrypt
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
Reflection
session
SimpleXML
sockets
SPL
sqlite3
standard
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

[Zend Modules]


What are we missing ?? Would appreciate any pointers or suggestions on how to troubleshoot this. The ImageMagick was working perfectly until the reboot.
 

vpswing

Well-Known Member
Jun 4, 2014
48
6
58
cPanel Access Level
Root Administrator
Found a solution, although I still don't know what went wrong. Basically, I had to uninstall Imagick, remove the cache and reinstall again, i.e.

/opt/cpanel/ea-php70/root/bin/pecl uninstall imagick
rm -rf /opt/cpanel/ea-php70/root/usr/var/cache/php-pear/*
/opt/cpanel/ea-php70/root/bin/pecl install imagick

That seems to fix the issue.

But why Imagick disappeared (or rather, not loaded) in the first place is still a mystery. It is loaded in the /opt/cpanel/ea-php70/root/etc/php.d/zzzzzzz-pecl.ini file.
If anyone can shed a clue, I'd greatly appreciate it. Thanks!
 

kdean

Well-Known Member
Oct 19, 2012
408
82
78
Orlando, FL
cPanel Access Level
Root Administrator
My guess it has something to do with the Centos 7.8 update which would likely be the reason for the reboot.

They list "ImageMagick has been rebased from 6.7.8 to 6.9.10" under their Major Issues.

"Red Hat have updated the ImageMagick package from 6.7.8 to 6.9.10 and some things in third party yum repos that build against it will need to be rebuilt to cater for this."


If this is affecting Pecl extensions then cPanel may need to do something to auto-fix the issue if it is happening to everyone.
 
  • Like
Reactions: cPanelLauren

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
We just had a case open for this I found it while looking for the issue. It's a UPS case meaning it's upstream and we're tracking it. It's not an issue we have any control over but the resolution is to uninstall and reinstall the module. We have the following support article cPanel support - CentOS 7.8 Updates and ImageMagick
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
The instructions in the link provided gives the steps to uninstall/reinstall via the command line - furthermore, you can install via the interface, that's not ever been the issue, it's just not going to show in the interface until that issue is resolved though they function normally.
 

vpswing

Well-Known Member
Jun 4, 2014
48
6
58
cPanel Access Level
Root Administrator
My guess it has something to do with the Centos 7.8 update which would likely be the reason for the reboot.

They list "ImageMagick has been rebased from 6.7.8 to 6.9.10" under their Major Issues.

"Red Hat have updated the ImageMagick package from 6.7.8 to 6.9.10 and some things in thir d party yum repos that build against it will need to be rebuilt to cater for this."


If this is affecting Pecl extensions then cPanel may need to do something to auto-fix the issue if it is happening to everyone.
Thanks, that makes sense!