SOLVED imagick pecl refuses to install for PHP 7.1

Nick Fenwick

Member
Sep 28, 2018
17
3
3
Bangkok
cPanel Access Level
Root Administrator
Hi guys, I have a server with an old PHP 5.6 website we are upgrading to PHP 7.1. It had the imagick PECL installed on it via WHM. I find I cannot make it install the imagick PECL for 7.1.

Platform: CENTOS 7.6 WHM v80.0.11

Module Installers => PHP Pecl page shows two PHP versions in the dropdown:
ea-php56
ea-php71

The page opens with php56 displaying, with Module Include Path /opt/cpanel/ea-php56/root/usr/lib64/php/modules and a single installed module visible, imagick (3.4.4).

If I select ea-php71 from the dropdown and click Apply (to change versions, I presume), the Module Include Path updates to /opt/cpanel/ea-php71/root/usr/lib64/php/modules but I still see the imagick (3.4.4) installed module. I know for a fact it's not installed, e.g.:

Code:
# ls -l /opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so
-rw-r--r-- 1 root root 1363792 Jun  3 10:38 /opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so
# ls -l /opt/cpanel/ea-php71/root/usr/lib64/php/modules/imagick.so
ls: cannot access /opt/cpanel/ea-php71/root/usr/lib64/php/modules/imagick.so: No such file or directory
If I click Reinstall for the visible Installed imagick module, the output shows it building and installing in the php56 path.

I have read ImageMagick installation on actual cPanel-server and tried a manual install with:

Code:
# /opt/cpanel/ea-php71/root/usr/bin/pecl install imagick
pecl/imagick is already installed and is the same as the released version 3.4.4
install failed
This is not correct, imagick is not installed for ea-php71.

If I Uninstall the installed module via the web interface, then I can select ea-php71 as the Version, search for 'imagick' and click Install for it, but the output on the web interface shows it still installing for php56. I cannot see why it's defaulting to php56.

[*edit* this is a production server and I cannot risk taking it down during the day, I will try to repeat this process out-of-hours and post the output of the build here ]

Same via the command line, I can uninstall the module and tell it to install using the pecl binary in the ea-php71 path, but the output shows it building and installing in the php56 path.

I also tried forcing the php version:
Code:
# /opt/cpanel/ea-php71/root/usr/bin/pecl -d php_suffix=7.1 install imagick
This gave me the same result as before, it only ever installs in /opt/cpanel/ea-php56.

I am not sure what to do from here. The 'default' php on the system seems to be 5.6:

Code:
# which php
/usr/local/bin/php
# php -v
PHP 5.6.40 (cli) (built: May 14 2019 13:50:30)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
What else can I try, please?
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello @Nick Fenwick,

I've been unable to reproduce this issue on a test system running CentOS 7 and cPanel & WHM version 80. Can you execute the below commands and let us know the output?

Code:
/opt/cpanel/ea-php71/root/usr/bin/pecl uninstall imagick
/opt/cpanel/ea-php71/root/usr/bin/pecl install imagick
Thank you.
 

Nick Fenwick

Member
Sep 28, 2018
17
3
3
Bangkok
cPanel Access Level
Root Administrator
Thank you @cPanelMichael, yes here is the output:

Code:
# /opt/cpanel/ea-php71/root/usr/bin/pecl uninstall imagick
Extension imagick disabled in php.ini
uninstall ok: channel://pecl.php.net/imagick-3.4.4
After running the uninstall, the 'Imagick' section disappears from the `phpinfo()` output from the old php56 website.

Code:
# /opt/cpanel/ea-php71/root/usr/bin/pecl install imagick
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading imagick-3.4.4.tgz ...
Starting to download imagick-3.4.4.tgz (253,434 bytes)
.....................................................done: 253,434 bytes
19 source files, building
running: phpize
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
Please provide the prefix of ImageMagick installation [autodetect] :
building in /root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4
running: /root/tmp/pear/imagick/configure --with-php-config=/opt/cpanel/ea-php56/root/usr/bin//php-config --with-imagick
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /opt/cpanel/ea-php56/root/usr
checking for PHP includes... -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib
checking for PHP extension directory... /opt/cpanel/ea-php56/root/usr/lib64/php/modules
checking for PHP installed headers prefix... /opt/cpanel/ea-php56/root/usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable the imagick extension... yes, shared
checking for pkg-config... /usr/bin/pkg-config
checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
checking Testing /usr/bin/MagickWand-config... It exists
found in /usr/bin/MagickWand-config
checking if ImageMagick version is at least 6.2.4... found version 6.9.10 Q16
checking for MagickWand.h or magick-wand.h header... user location /usr/include/ImageMagick-6/wand/MagickWand.h
checking PHP version is at least 5.3.2... yes. found 5.6.40
libs
-lMagickWand-6.Q16 -lMagickCore-6.Q16


checking for MagickGetVersion... yes
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/sh /root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/libtool --mode=compile cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6   -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/include -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/include/ImageMagick-6  -DHAVE_CONFIG_H  -g -O2   -c /root/tmp/pear/imagick/imagick_file.c -o imagick_file.lo
libtool: compile:  cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6 -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/include -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/include/ImageMagick-6 -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/imagick/imagick_file.c  -fPIC -DPIC -o .libs/imagick_file.o
/bin/sh /root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/libtool --mode=compile cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6   -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/include -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/include/ImageMagick-6  -DHAVE_CONFIG_H  -g -O2   -c /root/tmp/pear/imagick/imagick_class.c -o imagick_class.lo
libtool: compile:  cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6 -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/include -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/include/ImageMagick-6 -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/imagick/imagick_class.c  -fPIC -DPIC -o .libs/imagick_class.o
/root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_getimagematte':
/root/tmp/pear/imagick/imagick_class.c:299:2: warning: 'MagickGetImageMatte' is deprecated (declared at /usr/include/ImageMagick-6/wand/deprecate.h:85) [-Wdeprecated-declarations]
  matte = MagickGetImageMatte(intern->magick_wand);
  ^
/root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_paintfloodfillimage':
/root/tmp/pear/imagick/imagick_class.c:1284:3: warning: 'MagickPaintFloodfillImage' is deprecated (declared at /usr/include/ImageMagick-6/wand/deprecate.h:102) [-Wdeprecated-declarations]
   status = MagickPaintFloodfillImage(intern->magick_wand, channel, fill_wand, fuzz, NULL, x, y);
   ^
/root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_recolorimage':
/root/tmp/pear/imagick/imagick_class.c:1774:2: warning: 'MagickRecolorImage' is deprecated (declared at /usr/include/ImageMagick-6/wand/deprecate.h:116) [-Wdeprecated-declarations]
  status = MagickRecolorImage(intern->magick_wand, order, array);
  ^
/root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_colorfloodfillimage':
/root/tmp/pear/imagick/imagick_class.c:4315:2: warning: 'MagickColorFloodfillImage' is deprecated (declared at /usr/include/ImageMagick-6/wand/deprecate.h:78) [-Wdeprecated-declarations]
  status = MagickColorFloodfillImage(intern->magick_wand, fill_wand, fuzz, border_wand, x, y);
  ^
/root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_mapimage':
/root/tmp/pear/imagick/imagick_class.c:4743:2: warning: 'MagickMapImage' is deprecated (declared at /usr/include/ImageMagick-6/wand/deprecate.h:89) [-Wdeprecated-declarations]
  status = MagickMapImage(intern->magick_wand, intern_map->magick_wand, dither);
  ^
/root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_mattefloodfillimage':
/root/tmp/pear/imagick/imagick_class.c:4784:2: warning: 'MagickMatteFloodfillImage' is deprecated (declared at /usr/include/ImageMagick-6/wand/deprecate.h:91) [-Wdeprecated-declarations]
  status = MagickMatteFloodfillImage(intern->magick_wand, alpha, fuzz, color_wand, x, y);
  ^
/root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_medianfilterimage':
/root/tmp/pear/imagick/imagick_class.c:4822:2: warning: 'MagickMedianFilterImage' is deprecated (declared at /usr/include/ImageMagick-6/wand/magick-image.h:222) [-Wdeprecated-declarations]
  status = MagickMedianFilterImage(intern->magick_wand, radius);
  ^
/root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_paintopaqueimage':
/root/tmp/pear/imagick/imagick_class.c:4904:2: warning: 'MagickPaintOpaqueImageChannel' is deprecated (declared at /usr/include/ImageMagick-6/wand/deprecate.h:107) [-Wdeprecated-declarations]
  status = MagickPaintOpaqueImageChannel(intern->magick_wand, channel, target_wand, fill_wand, fuzz);
  ^
/root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_painttransparentimage':
/root/tmp/pear/imagick/imagick_class.c:4987:2: warning: 'MagickPaintTransparentImage' is deprecated (declared at /usr/include/ImageMagick-6/wand/deprecate.h:110) [-Wdeprecated-declarations]
  status = MagickPaintTransparentImage(intern->magick_wand, color_wand, alpha, fuzz);
  ^
/root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_reducenoiseimage':
/root/tmp/pear/imagick/imagick_class.c:5151:2: warning: 'MagickReduceNoiseImage' is deprecated (declared at /usr/include/ImageMagick-6/wand/magick-image.h:269) [-Wdeprecated-declarations]
  status = MagickReduceNoiseImage(intern->magick_wand, radius);
  ^
/root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_getimageattribute':
/root/tmp/pear/imagick/imagick_class.c:6481:2: warning: 'MagickGetImageAttribute' is deprecated (declared at /usr/include/ImageMagick-6/wand/deprecate.h:62) [-Wdeprecated-declarations]
  attribute = MagickGetImageAttribute(intern->magick_wand, key);
  ^
/root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_getimagechannelextrema':
/root/tmp/pear/imagick/imagick_class.c:6698:2: warning: 'MagickGetImageChannelExtrema' is deprecated (declared at /usr/include/ImageMagick-6/wand/deprecate.h:81) [-Wdeprecated-declarations]
  status = MagickGetImageChannelExtrema(intern->magick_wand, channel_type, &minima, &maxima);
  ^
/root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_getimageextrema':
/root/tmp/pear/imagick/imagick_class.c:7039:2: warning: 'MagickGetImageExtrema' is deprecated (declared at /usr/include/ImageMagick-6/wand/deprecate.h:83) [-Wdeprecated-declarations]
  status = MagickGetImageExtrema(intern->magick_wand, &min, &max);
  ^
/root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_getimageindex':
/root/tmp/pear/imagick/imagick_class.c:8151:2: warning: 'MagickGetImageIndex' is deprecated (declared at /usr/include/ImageMagick-6/wand/deprecate.h:68) [-Wdeprecated-declarations]
  status = MagickGetImageIndex(intern->magick_wand);
  ^
/root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_getimagesize':
/root/tmp/pear/imagick/imagick_class.c:8272:2: warning: 'MagickGetImageSize' is deprecated (declared at /usr/include/ImageMagick-6/wand/deprecate.h:147) [-Wdeprecated-declarations]
  ZVAL_LONG(return_value, (long)MagickGetImageSize(intern->magick_wand));
  ^
/root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_setimageattribute':
/root/tmp/pear/imagick/imagick_class.c:8746:2: warning: 'MagickSetImageAttribute' is deprecated (declared at /usr/include/ImageMagick-6/wand/deprecate.h:118) [-Wdeprecated-declarations]
  status = MagickSetImageAttribute(intern->magick_wand, key, attribute);
  ^
/root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_flattenimages':
/root/tmp/pear/imagick/imagick_class.c:9121:2: warning: 'MagickFlattenImages' is deprecated (declared at /usr/include/ImageMagick-6/wand/deprecate.h:139) [-Wdeprecated-declarations]
  tmp_wand = MagickFlattenImages(intern->magick_wand);
  ^
/root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_averageimages':
/root/tmp/pear/imagick/imagick_class.c:10308:2: warning: 'MagickAverageImages' is deprecated (declared at /usr/include/ImageMagick-6/wand/deprecate.h:138) [-Wdeprecated-declarations]
  tmp_wand = MagickAverageImages(intern->magick_wand);
  ^
/root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_mosaicimages':
/root/tmp/pear/imagick/imagick_class.c:10811:2: warning: 'MagickMosaicImages' is deprecated (declared at /usr/include/ImageMagick-6/wand/deprecate.h:142) [-Wdeprecated-declarations]
  tmp_wand = MagickMosaicImages(intern->magick_wand);
  ^
/root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_radialblurimage':
/root/tmp/pear/imagick/imagick_class.c:10941:2: warning: 'MagickRadialBlurImageChannel' is deprecated (declared at /usr/include/ImageMagick-6/wand/deprecate.h:114) [-Wdeprecated-declarations]
  status = MagickRadialBlurImageChannel(intern->magick_wand, channel, angle);
  ^
/bin/sh /root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/libtool --mode=compile cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6   -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/include -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/include/ImageMagick-6  -DHAVE_CONFIG_H  -g -O2   -c /root/tmp/pear/imagick/imagickdraw_class.c -o imagickdraw_class.lo
libtool: compile:  cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6 -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/include -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/include/ImageMagick-6 -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/imagick/imagickdraw_class.c  -fPIC -DPIC -o .libs/imagickdraw_class.o
/bin/sh /root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/libtool --mode=compile cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6   -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/include -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/include/ImageMagick-6  -DHAVE_CONFIG_H  -g -O2   -c /root/tmp/pear/imagick/imagickpixel_class.c -o imagickpixel_class.lo
libtool: compile:  cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6 -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/include -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/include/ImageMagick-6 -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/imagick/imagickpixel_class.c  -fPIC -DPIC -o .libs/imagickpixel_class.o
/bin/sh /root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/libtool --mode=compile cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6   -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/include -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/include/ImageMagick-6  -DHAVE_CONFIG_H  -g -O2   -c /root/tmp/pear/imagick/imagickpixeliterator_class.c -o imagickpixeliterator_class.lo
libtool: compile:  cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6 -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/include -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/include/ImageMagick-6 -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/imagick/imagickpixeliterator_class.c  -fPIC -DPIC -o .libs/imagickpixeliterator_class.o
/bin/sh /root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/libtool --mode=compile cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6   -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/include -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/include/ImageMagick-6  -DHAVE_CONFIG_H  -g -O2   -c /root/tmp/pear/imagick/imagick_helpers.c -o imagick_helpers.lo
libtool: compile:  cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6 -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/include -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/include/ImageMagick-6 -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/imagick/imagick_helpers.c  -fPIC -DPIC -o .libs/imagick_helpers.o
/bin/sh /root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/libtool --mode=compile cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6   -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/include -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/include/ImageMagick-6  -DHAVE_CONFIG_H  -g -O2   -c /root/tmp/pear/imagick/imagick.c -o imagick.lo
libtool: compile:  cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6 -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/include -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/include/ImageMagick-6 -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/imagick/imagick.c  -fPIC -DPIC -o .libs/imagick.o
/bin/sh /root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/libtool --mode=compile cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6   -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/include -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/include/ImageMagick-6  -DHAVE_CONFIG_H  -g -O2   -c /root/tmp/pear/imagick/imagickkernel_class.c -o imagickkernel_class.lo
libtool: compile:  cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6 -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/include -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/include/ImageMagick-6 -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/imagick/imagickkernel_class.c  -fPIC -DPIC -o .libs/imagickkernel_class.o
/bin/sh /root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/libtool --mode=compile cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6   -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/include -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/include/ImageMagick-6  -DHAVE_CONFIG_H  -g -O2   -c /root/tmp/pear/imagick/shim_im6_to_im7.c -o shim_im6_to_im7.lo
libtool: compile:  cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6 -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/include -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/include/ImageMagick-6 -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/imagick/shim_im6_to_im7.c  -fPIC -DPIC -o .libs/shim_im6_to_im7.o
/bin/sh /root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/libtool --mode=link cc -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/include -I/root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/include/ImageMagick-6  -DHAVE_CONFIG_H  -g -O2   -o imagick.la -export-dynamic -avoid-version -prefer-pic -module -rpath /root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/modules  imagick_file.lo imagick_class.lo imagickdraw_class.lo imagickpixel_class.lo imagickpixeliterator_class.lo imagick_helpers.lo imagick.lo imagickkernel_class.lo shim_im6_to_im7.lo -lMagickWand-6.Q16 -lMagickCore-6.Q16
libtool: link: cc -shared  -fPIC -DPIC  .libs/imagick_file.o .libs/imagick_class.o .libs/imagickdraw_class.o .libs/imagickpixel_class.o .libs/imagickpixeliterator_class.o .libs/imagick_helpers.o .libs/imagick.o .libs/imagickkernel_class.o .libs/shim_im6_to_im7.o   -lMagickWand-6.Q16 -lMagickCore-6.Q16  -O2   -Wl,-soname -Wl,imagick.so -o .libs/imagick.so
libtool: link: ( cd ".libs" && rm -f "imagick.la" && ln -s "../imagick.la" "imagick.la" )
/bin/sh /root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/libtool --mode=install cp ./imagick.la /root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/modules
libtool: install: cp ./.libs/imagick.so /root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/modules/imagick.so
libtool: install: cp ./.libs/imagick.lai /root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/modules/imagick.la
libtool: finish: PATH="/opt/cpanel/ea-php56/root/usr/bin/:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:/opt/cpanel/composer/bin:/root/bin:/sbin" ldconfig -n /root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /root/tmp/pear/pear-build-rootM0O6li/imagick-3.4.4/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

running: make INSTALL_ROOT="/root/tmp/pear/pear-build-rootM0O6li/install-imagick-3.4.4" install
Installing shared extensions:     /root/tmp/pear/pear-build-rootM0O6li/install-imagick-3.4.4/opt/cpanel/ea-php56/root/usr/lib64/php/modules/
Installing header files:           /root/tmp/pear/pear-build-rootM0O6li/install-imagick-3.4.4/opt/cpanel/ea-php56/root/usr/include/php/
running: find "/root/tmp/pear/pear-build-rootM0O6li/install-imagick-3.4.4" | xargs ls -dils
25245900    0 drwxr-xr-x 3 root root      17 Jun  4 06:12 /root/tmp/pear/pear-build-rootM0O6li/install-imagick-3.4.4
 8637703    0 drwxr-xr-x 3 root root      20 Jun  4 06:12 /root/tmp/pear/pear-build-rootM0O6li/install-imagick-3.4.4/opt
16809934    0 drwxr-xr-x 3 root root      22 Jun  4 06:12 /root/tmp/pear/pear-build-rootM0O6li/install-imagick-3.4.4/opt/cpanel
25245901    0 drwxr-xr-x 3 root root      18 Jun  4 06:12 /root/tmp/pear/pear-build-rootM0O6li/install-imagick-3.4.4/opt/cpanel/ea-php56
  108709    0 drwxr-xr-x 3 root root      17 Jun  4 06:12 /root/tmp/pear/pear-build-rootM0O6li/install-imagick-3.4.4/opt/cpanel/ea-php56/root
 8637704    0 drwxr-xr-x 4 root root      34 Jun  4 06:12 /root/tmp/pear/pear-build-rootM0O6li/install-imagick-3.4.4/opt/cpanel/ea-php56/root/usr
 8637702    0 drwxr-xr-x 3 root root      17 Jun  4 06:12 /root/tmp/pear/pear-build-rootM0O6li/install-imagick-3.4.4/opt/cpanel/ea-php56/root/usr/include
16809936    0 drwxr-xr-x 3 root root      17 Jun  4 06:12 /root/tmp/pear/pear-build-rootM0O6li/install-imagick-3.4.4/opt/cpanel/ea-php56/root/usr/include/php
25245904    0 drwxr-xr-x 3 root root      21 Jun  4 06:12 /root/tmp/pear/pear-build-rootM0O6li/install-imagick-3.4.4/opt/cpanel/ea-php56/root/usr/include/php/ext
  108712    0 drwxr-xr-x 2 root root      34 Jun  4 06:12 /root/tmp/pear/pear-build-rootM0O6li/install-imagick-3.4.4/opt/cpanel/ea-php56/root/usr/include/php/ext/imagick
  108713    4 -rw-r--r-- 1 root root    1828 Jun  4 06:12 /root/tmp/pear/pear-build-rootM0O6li/install-imagick-3.4.4/opt/cpanel/ea-php56/root/usr/include/php/ext/imagick/php_imagick_shared.h

16809935    0 drwxr-xr-x 3 root root      17 Jun  4 06:12 /root/tmp/pear/pear-build-rootM0O6li/install-imagick-3.4.4/opt/cpanel/ea-php56/root/usr/lib64
25245902    0 drwxr-xr-x 3 root root      21 Jun  4 06:12 /root/tmp/pear/pear-build-rootM0O6li/install-imagick-3.4.4/opt/cpanel/ea-php56/root/usr/lib64/php
  108710    0 drwxr-xr-x 2 root root      24 Jun  4 06:12 /root/tmp/pear/pear-build-rootM0O6li/install-imagick-3.4.4/opt/cpanel/ea-php56/root/usr/lib64/php/modules
  108711 1332 -rwxr-xr-x 1 root root 1363792 Jun  4 06:12 /root/tmp/pear/pear-build-rootM0O6li/install-imagick-3.4.4/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so

Build process completed successfully
Installing '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so'
Installing '/opt/cpanel/ea-php56/root/usr/include/php/ext/imagick/php_imagick_shared.h'
install ok: channel://pecl.php.net/imagick-3.4.4
Extension imagick enabled in php.ini
I guess the problem stems from the "--with-php-config=/opt/cpanel/ea-php56/root/usr/bin//php-config" argument being passed to configure but I can't be sure. I tried providing "/opt/cpanel/ea-php71/root/usr/bin" when it prompts, instead of allowing it to autodetect, but this did not change the installation folder.
 

Nick Fenwick

Member
Sep 28, 2018
17
3
3
Bangkok
cPanel Access Level
Root Administrator
I also tried, with no luck, changing the system default PHP version seen on the MultiPHP Manager page. Please see attached screenshot showing system default PHP being 5.6. Changing this to 7.1 did not effect the command line results, running the php71 pecl install command still installs for ea-php56 just like before.
 

Attachments

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello @Nick Fenwick,

Can you open a support ticket so we can take a closer look at the affected system? You can post the ticket number here and I'll link this thread to it.

Thank you.
 

Nick Fenwick

Member
Sep 28, 2018
17
3
3
Bangkok
cPanel Access Level
Root Administrator
Can you open a support ticket so we can take a closer look at the affected system? You can post the ticket number here and I'll link this thread to it.
i am having trouble opening a ticket using the automated system. The docs say to select "WHM >> Home >> Support >> Create Support Ticket" but I don't see that, I see a "Submit a Support Request" option, which starts a Support Ticket Wizard, which pops up an authentication dialog asking me to log on. Here I have to enter an email and password. I've tried the same email/password for this forum, doesn't work. I've clicked Forgot Password, the dialog says it has emailed me a reset email, to the same email address I use for this forum (it ends @ our domain name, I've triple checked it for typos), no email comes through. It's a gmail (G Suite) account, I've checked in Thunderbird client and gmail web client, checked Spam and Trash folders.

I tried the manual ticket system that I was led to when I tried to Cancel the automated system, it led me to cPanel Customer Portal where again I had trouble logging on. Clicking Forgot Password lets me enter my email, where I am told:

"""
If the email address you entered is associated with a valid ticket system account, you will be emailed a link that will allow you to reset your password.
"""

I got no email. How can I check if the email is associated with a valid ticket system account? It's the same email I'm using on this forum.

Pretty confused :) Thank you!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello Nick,

Can you email our Customer Service Department (cs @ cpanel.net) directly to request a reset of your cPanel Customer Portal login details? From there you can login to the cPanel Customer Portal to submit the ticket.

Thank you.
 

Nick Fenwick

Member
Sep 28, 2018
17
3
3
Bangkok
cPanel Access Level
Root Administrator
Thank you @cPanelMichael .. it turns out I don't think I had a Customer Portal login at all. I didn't realise I might not have one, since I can log on here.

I created support ticket 12504677 and have granted SSH access to the server.

I tried adding 'echo' statements to the pecl command to see what was being executed, and although an echo in /opt/cpanel/ea-php71/root/usr/bin/pecl did appear, I see that script simply executes /opt/cpanel/ea-php71/root/usr/share/pear/peclcmd.php, yet putting an echo statement at the top of that script does not appear when running install or uninstall commands. I can't see why this would be.
 

Nick Fenwick

Member
Sep 28, 2018
17
3
3
Bangkok
cPanel Access Level
Root Administrator
cPanel support helped me on my ticket, a very speedy and professional experience, I'm impressed. For the record to help others, here's what happened.

It turns out I had a /root/.pearrc file that was overriding some of my settings, but first he helped me check and set some config settings from the command line:

Code:
# /opt/cpanel/ea-php71/root/usr/bin/pecl config-show | grep 56
PEAR executables directory bin_dir /opt/cpanel/ea-php56/root/usr/bin/
PHP CLI/CGI binary php_bin /opt/cpanel/ea-php56/root/usr/bin/php
php.ini location php_ini /opt/cpanel/ea-php56/root/etc/php.ini
So my php71 pecl command showed php56 paths in its config, these were reset with:

Code:
# /opt/cpanel/ea-php71/root/usr/bin/pecl config-set php_bin /opt/cpanel/ea-php71/root/usr/bin/php
config-set succeeded

# /opt/cpanel/ea-php71/root/usr/bin/pecl config-set php_ini /opt/cpanel/ea-php71/root/etc/php.ini
config-set succeeded

# /opt/cpanel/ea-php71/root/usr/bin/pecl config-set bin_dir /opt/cpanel/ea-php71/root/usr/bin/
config-set succeeded
After this the Imagick PECL installed successfully for php 71. I also had to restart Apache and PHP-FPM services to make the new module become available, due to how our server is configured.

However, after this, I double checked the old php56 config and now it seemed to be pointing to 71. Rather than confuse things here, I'll just say that the support guy pointed out a /root/.pearrc file that contained php56 paths which seemed to be confusing things, i.e.:

Code:
# cat /root/.pearrc
#PEAR_Config 0.9
a:3:{s:10:"__channels";a:4:{s:12:"pecl.php.net";a:3:{s:7:"bin_dir";s:34:"/opt/cpanel/ea-php56/root/usr/bin/";s:7:"php_bin";s:37:"/opt/cpanel/ea-php56/root/usr/bin/php";s:7:"php_ini";s:37:"/opt/cpanel/ea-php56/root/etc/php.ini";}s:5:"__uri";a:0:{}s:11:"doc.php.net";a:0:{}s:14:"pear.horde.org";a:3:{s:9:"horde_dir";s:28:"/usr/local/cpanel/base/horde";s:7:"php_dir";s:41:"/usr/local/cpanel/3rdparty/php/72/lib/php";s:8:"data_dir";s:46:"/usr/local/cpanel/3rdparty/php/72/lib/php/data";}}s:8:"temp_dir";s:14:"/root/tmp/pear";s:9:"horde_dir";s:28:"/usr/local/cpanel/base/horde";}
I've no idea how long that file has been sitting around. It seems that every "config-set" directive we issued was updating this file, so the changes became "global" for all versions of PEAR on the system (definitely bad if you have multiple PHP versions installed like I do). He simply moved it out of the way (to .pearrc.off) and now the pecl config for both versions of PHP report correct paths. This was possibly the root cause of my original problem.

Thank you for your help!
Nick
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello Nick,

I'm glad to see the issue was solved. Thanks for sharing the outcome!
 

000

Well-Known Member
Jun 3, 2008
549
30
78
hello, I have CentOs 7 with cPanel 11.84.0.9
Code:
[root@pepsi ~]# grep CPANEL /etc/cpupdate.conf
CPANEL=release
[root@pepsi ~]#  cat /usr/local/cpanel/version
11.84.0.9
[root@pepsi ~]# cat /etc/redhat-release;
CentOS Linux release 7.7.1908 (Core)
[root@pepsi ~]#
what steps I need follow to get success in
PHP:
print_r(Imagick::getVersion());
???

Thanks!
 

000

Well-Known Member
Jun 3, 2008
549
30
78
hello, I have CentOs 7 with cPanel 11.84.0.9
Code:
[root@pepsi ~]# grep CPANEL /etc/cpupdate.conf
CPANEL=release
[root@pepsi ~]#  cat /usr/local/cpanel/version
11.84.0.9
[root@pepsi ~]# cat /etc/redhat-release;
CentOS Linux release 7.7.1908 (Core)
[root@pepsi ~]#
what steps I need follow to get success in
PHP:
print_r(Imagick::getVersion());
???

Thanks!
you need restart the server complet that is other bug to fix in cPanel...
 
Last edited: