EasyApache 3 upgrade to PHP 5.6 no imagick option

JamasWise

Member
Jun 18, 2014
12
1
53
cPanel Access Level
Root Administrator
I have been trying to hunt down a solution to this issue for a few days now. Finally hit a wall!

I recently upgrade our server using EasyApache 3 to PHP 5.6. Everything worked great after the upgrade except for one WordPress plugin. That plugin creates an image from a PDF file using ImageMagick. I re-ran EasyApache 3 to see if I missed setting the option for php support for imagick, but it is missing.

After hunting around I have tried several solutions in other threads without success.

Code:
/scripts/installimagemagick
info [installimagemagick] scripts/installimagemagick is now deprecated. The ImageMagick from your distro will now be installed.
Loaded plugins: fastestmirror, rhnplugin
Setting up Install Process
Loading mirror speeds from cached hostfile
* cloudlinux-x86_64-server-6: xmlrpc.cln.cloudlinux.com
Package ImageMagick-devel-6.7.2.7-2.el6.x86_64 already installed and latest version
Package ImageMagick-c++-devel-6.7.2.7-2.el6.x86_64 already installed and latest version
Package ImageMagick-6.7.2.7-2.el6.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror, rhnplugin
Setting up Install Process
Loading mirror speeds from cached hostfile
* cloudlinux-x86_64-server-6: xmlrpc.cln.cloudlinux.com
Package ImageMagick-perl-6.7.2.7-2.el6.x86_64 already installed and latest version
Nothing to do
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
pecl/imagick is already installed and is the same as the released version 3.4.1
install failed
extension imagick.so installed in /usr/local/lib/php.ini
Tidying /usr/local/lib/php.ini...
No changes
Tidying /usr/local/cpanel/3rdparty/php/54/etc/php.ini...
No changes
I also tried the reinstall option under the PHP Pecl Module Installer in WHM. This provided no output. So I tried an uninstall and reinstall.

Nothing seems to get EasyApache 3 to show the option. Maybe this is OK as ImageMagick is now being loaded as an extension.

One thing I did notice is the PHP Pecl Module Installer made the permissions of the file as

Code:
-rw-r--r-- 1 root root 1116418 Apr  6 23:19 imagick.so
The other extension in that directory are all +x, so I changed that but it didn't make a difference.

Now if I do a phpinfo dump for one of the accounts using the native php version I see that ImageMagick is available.

Not to complicate things further but the server is running CageFS with PHP selector. If I pick the PHP 5.6 version under the selector for an account (this would be the non-native version that is created via EasyApache), then the plugin works great. The only difference that is obvious is that the CageFS 5.6 version has ImageMagick 3.1.2 installed, which is fair bit older. It also shows up as a module under the module picker in the PHP selector.

Server details:
Code:
/etc/redhat-release:CloudLinux Server release 6.7 (Aleksei Gubarev)
/usr/local/cpanel/version:11.54.0.21
/var/cpanel/envtype:standard
CPANEL=release
Server version: Apache/2.4.18 (Unix)
Server built:   Apr  6 2016 00:40:59
Cpanel::Easy::Apache v3.32.12 rev9999 +cloudlinux
PHP 5.6.20 (cli) (built: Apr  6 2016 00:43:29)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with the ionCube PHP Loader v4.7.5, Copyright (c) 2002-2014, by ionCube Ltd.
    with Suhosin v0.9.36, Copyright (c) 2007-2014, by SektionEins GmbH
mysql  Ver 15.1 Distrib 10.0.24-MariaDB, for Linux (x86_64) using readline 5.1
Here are my questions to continue my debug:

1) Is the missing imagick option under EasyApache 3 for PHP 5.6 expected?
2) Is the extension permissions an issue with the PECL installer?
3) The difference in ImageMagick versions is big but I don't see any error log outputs indicating that a called function is no longer available. Any ideas on how to debug that further?

This could all be an issue with the plugin but I wanted to understand these issues before asking the author of the plugin questions. Sorry for the long read but I have been at this for days!

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
1) Is the missing imagick option under EasyApache 3 for PHP 5.6 expected?
2) Is the extension permissions an issue with the PECL installer?
3) The difference in ImageMagick versions is big but I don't see any error log outputs indicating that a called function is no longer available. Any ideas on how to debug that further?
Hello :)

1. Could you elaborate on where you are expecting to see the "imagick" option listed?
2. The default permissions you referenced should not prevent this module from working.
3. The issue seems isolated to CageFS based on the information you provided. Please see this document:

PHP Selector > Configuration > Setting default version and modules

There's also a third-party URL here you may find helpful:

crybit.com/how-to-install-imagemagick/#cloudlinux

Thank you.
 

JamasWise

Member
Jun 18, 2014
12
1
53
cPanel Access Level
Root Administrator
Thanks for taking a look at my questions.

1) I remember at one point under the EasyApache 3 Exhaustive Option List there used to a PHP option for imagick module. I no longer see this option. I am not sure if this expected given the change in how ImageMagick is installed or if this is part of the problems I am having.
2) Good to know.
3) I will check out those links. Just to clarify that when running CageFS's php version everything works great. It is only while running the native version build via EasyApache am I seeing issues.

Thanks
James
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

Thank you.