arjanvr

Well-Known Member
Dec 13, 2013
113
1
18
cPanel Access Level
Root Administrator
Hello,

I had installed Imagick but this gave an error when trying to use Akeeba.

PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0

Then I tried below to install as this i found in the forum but that gives a make error..
Any clues?

Code:
# /opt/cpanel/ea-php56/root/usr/bin/pecl install imagick
downloading imagick-3.4.3RC1.tgz ...
Starting to download imagick-3.4.3RC1.tgz (245,140 bytes)
.................done: 245,140 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-rootcQa1Ld/imagick-3.4.3RC1
running: /root/tmp/pear/imagick/configure --with-php-config=/usr/local/bin/php-config --with-imagick
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20131226
checking for PHP installed headers prefix... /usr/local/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.7.2 Q16
checking for MagickWand.h or magick-wand.h header... /usr/include/ImageMagick/wand/MagickWand.h
checking PHP version is at least 5.1.3... yes. found 5.6.17
libs
-lMagickWand -lMagickCore


checking for MagickGetVersion... yes
checking for MagickSetImageInterpolateMethod... yes
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1966080
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... 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

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick  -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/include -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/main -I/root/tmp/pear/imagick -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2  -c /root/tmp/pear/imagick/imagick_file.c -o imagick_file.lo
mkdir .libs
cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/include -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/main -I/root/tmp/pear/imagick -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/ImageMagick -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-rootcQa1Ld/imagick-3.4.3RC1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick  -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/include -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/main -I/root/tmp/pear/imagick -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2  -c /root/tmp/pear/imagick/imagick_class.c -o imagick_class.lo
cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/include -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/main -I/root/tmp/pear/imagick -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/ImageMagick -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: warning: ‘MagickGetImageMatte’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:82)
/root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_paintfloodfillimage’:
/root/tmp/pear/imagick/imagick_class.c:1248: warning: ‘MagickPaintFloodfillImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:99)
/root/tmp/pear/imagick/imagick_class.c:1256: warning: ‘MagickPaintFloodfillImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:99)
/root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_recolorimage’:
/root/tmp/pear/imagick/imagick_class.c:1738: warning: ‘MagickRecolorImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:109)
/root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_colorfloodfillimage’:
/root/tmp/pear/imagick/imagick_class.c:4279: warning: ‘MagickColorFloodfillImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:75)
/root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_mapimage’:
/root/tmp/pear/imagick/imagick_class.c:4707: warning: ‘MagickMapImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:86)
/root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_mattefloodfillimage’:
/root/tmp/pear/imagick/imagick_class.c:4748: warning: ‘MagickMatteFloodfillImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:88)
/root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_medianfilterimage’:
/root/tmp/pear/imagick/imagick_class.c:4786: warning: ‘MagickMedianFilterImage’ is deprecated (declared at /usr/include/ImageMagick/wand/magick-image.h:212)
/root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_paintopaqueimage’:
/root/tmp/pear/imagick/imagick_class.c:4868: warning: ‘MagickPaintOpaqueImageChannel’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:104)
/root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_painttransparentimage’:
/root/tmp/pear/imagick/imagick_class.c:4951: warning: ‘MagickPaintTransparentImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:107)
/root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_reducenoiseimage’:
/root/tmp/pear/imagick/imagick_class.c:5115: warning: ‘MagickReduceNoiseImage’ is deprecated (declared at /usr/include/ImageMagick/wand/magick-image.h:260)
/root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_getimageattribute’:
/root/tmp/pear/imagick/imagick_class.c:6444: warning: ‘MagickGetImageAttribute’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:59)
/root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_getimagechannelextrema’:
/root/tmp/pear/imagick/imagick_class.c:6661: warning: ‘MagickGetImageChannelExtrema’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:78)
/root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_getimageextrema’:
/root/tmp/pear/imagick/imagick_class.c:7003: warning: ‘MagickGetImageExtrema’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:80)
/root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_getimageindex’:
/root/tmp/pear/imagick/imagick_class.c:8115: warning: ‘MagickGetImageIndex’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:65)
/root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_getimagesize’:
/root/tmp/pear/imagick/imagick_class.c:8236: warning: ‘MagickGetImageSize’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:140)
/root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_setimageattribute’:
/root/tmp/pear/imagick/imagick_class.c:8710: warning: ‘MagickSetImageAttribute’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:111)
/root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_flattenimages’:
/root/tmp/pear/imagick/imagick_class.c:9085: warning: ‘MagickFlattenImages’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:132)
/root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_averageimages’:
/root/tmp/pear/imagick/imagick_class.c:10272: warning: ‘MagickAverageImages’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:131)
/root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_mosaicimages’:
/root/tmp/pear/imagick/imagick_class.c:10775: warning: ‘MagickMosaicImages’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:135)
/bin/sh /root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick  -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/include -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/main -I/root/tmp/pear/imagick -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2  -c /root/tmp/pear/imagick/imagickdraw_class.c -o imagickdraw_class.lo
cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/include -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/main -I/root/tmp/pear/imagick -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/ImageMagick -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-rootcQa1Ld/imagick-3.4.3RC1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick  -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/include -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/main -I/root/tmp/pear/imagick -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2  -c /root/tmp/pear/imagick/imagickpixel_class.c -o imagickpixel_class.lo
cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/include -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/main -I/root/tmp/pear/imagick -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/ImageMagick -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-rootcQa1Ld/imagick-3.4.3RC1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick  -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/include -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/main -I/root/tmp/pear/imagick -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2  -c /root/tmp/pear/imagick/imagickpixeliterator_class.c -o imagickpixeliterator_class.lo
cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/include -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/main -I/root/tmp/pear/imagick -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/ImageMagick -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-rootcQa1Ld/imagick-3.4.3RC1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick  -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/include -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/main -I/root/tmp/pear/imagick -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2  -c /root/tmp/pear/imagick/imagick_helpers.c -o imagick_helpers.lo
cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/include -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/main -I/root/tmp/pear/imagick -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/ImageMagick -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-rootcQa1Ld/imagick-3.4.3RC1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick  -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/include -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/main -I/root/tmp/pear/imagick -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2  -c /root/tmp/pear/imagick/imagick.c -o imagick.lo
cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/include -I/root/tmp/pear/pear-build-rootcQa1Ld/imagick-3.4.3RC1/main -I/root/tmp/pear/imagick -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/imagick/imagick.c  -fPIC -DPIC -o .libs/imagick.o
In file included from /usr/local/include/php/ext/spl/spl_iterators.h:27,
  from /root/tmp/pear/imagick/imagick.c:37:
/usr/local/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory
In file included from /usr/local/include/php/ext/spl/spl_iterators.h:27,
  from /root/tmp/pear/imagick/imagick.c:37:
/usr/local/include/php/ext/pcre/php_pcre.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/local/include/php/ext/pcre/php_pcre.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/local/include/php/ext/pcre/php_pcre.h:44: error: expected specifier-qualifier-list before ‘pcre’
make: *** [imagick.lo] Error 1
ERROR: `make' failed
[email protected] [~]# RROR: `make' failed
Or does this have to be fixed another way?


PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
/usr/local/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory
Hello,

This suggests the pcre and pcre-devel packages required for this PECL module are missing on your system. You can install them via the following commands:

Code:
yum install pcre
yum install pcre-devel
Thank you.
 

arjanvr

Well-Known Member
Dec 13, 2013
113
1
18
cPanel Access Level
Root Administrator
Yes i just found it on the internet. Thank you for your fast reply!

yum install pcre-devel was missing.

I could not install it on all
/opt/cpanel/ea-php56/root/usr/bin/pecl install imagick
/opt/cpanel/ea-php71/root/usr/bin/pecl install imagick

but not
/opt/cpanel/ea-php70/root/usr/bin/pecl install imagick
where it said

[email protected] [~]# /opt/cpanel/ea-php70/root/usr/bin/pecl install imagick
-bash: /opt/cpanel/ea-php70/root/usr/bin/pecl: No such file or directory
[email protected] [~]#

I had no such issue on another vps with the same setup. Why would it refuse ea-php70 but allow 56 and 71?
Would using the command
/opt/cpanel/ea-php70/root/usr/bin/pecl install imagick

solve my initial issue of the error i received while using akeeba? Namely
PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
 

arjanvr

Well-Known Member
Dec 13, 2013
113
1
18
cPanel Access Level
Root Administrator
Its not solved.. it also now shows the error when using akeeba restore

HTTP Request Error
HTTP Status: 500 (Internal Server Error)
Internal status: error
XHR ReadyState: 4
Raw server response:
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
HTTP Status: 500 (Internal Server Error)
Hello,

What's output to /usr/local/apache/logs/error_log when you see this error message? Also, you mentioned:

[email protected] [~]# /opt/cpanel/ea-php70/root/usr/bin/pecl install imagick
-bash: /opt/cpanel/ea-php70/root/usr/bin/pecl: No such file or directory
[email protected] [~]#
Are you sure PHP 7 is installed via EasyApache 4? If not, you can install it via:

Code:
yum install ea-php70
Thank you.
 

arjanvr

Well-Known Member
Dec 13, 2013
113
1
18
cPanel Access Level
Root Administrator
oh sorry, apearenly i forgot to install php7 there and only installed 7.1. Is there a reason to choose 7.0 over 7.1 or 5.6 or can i just leave it uninstalled?

The 500 error, looking at the time frame and account name I would imagine it is this
[Fri Nov 04 20:17:40.717770 2016] [core:alert] [pid 19249] [client 151.80.31.179:60354] /home/********/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Fri Nov 04 20:17:40.718030 2016] [core:alert] [pid 19249] [client 151.80.31.179:60354] /home/********/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration

Somehow the errorlog is in apache2 btw?

Can that 500 error be related to what i did above?
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
oh sorry, apearenly i forgot to install php7 there and only installed 7.1. Is there a reason to choose 7.0 over 7.1 or 5.6 or can i just leave it uninstalled?
There's no need to install every available PHP version. You can choose to enable or disable the PHP versions that best suite your preferences.

[Fri Nov 04 20:17:40.717770 2016] [core:alert] [pid 19249] [client 151.80.31.179:60354] /home/********/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
Check to ensure no "php_flag" values are added to that .htaccess file. Also, please review the following post regarding php.ini customization in EasyApache 4:

EA4 php.ini/local.ini behavior

Thank you.