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.
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
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:
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!
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
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
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
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!