Fresh installed latest Nextcloud VM 13 has an error in system logs:
PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/lib/php/20170718/redis.so (/usr/lib/php/20170718/redis.so: undefined symbol: igbinary_serialize), /usr/lib/php/20170718/redis.so.so (/usr/lib/php/20170718/redis.so.so: cannot open shared object file: No such file or directory)) at Unknown#0
This is most likely a dependency issue. Waiting for Ubuntu to update their packages.
Found this: https://bugs.launchpad.net/ubuntu/+source/php-redis/+bug/1762935
Seems like a bug in Ubuntu 18.04.
ok i might found a proper solution to this.
i have done this under Ubuntu 18.04 LTS:
apt-get install php7.2-dev
pecl install redis
downloading redis-4.0.2.tgz ...
Starting to download redis-4.0.2.tgz (212,617 bytes)
.............done: 212,617 bytes
24 source files, building
running: phpize
Configuring for:
PHP Api Version: 20170718
Zend Module Api No: 20170718
Zend Extension Api No: 320170718
enable igbinary serializer support? [no] : yes
enable lzf compression support? [no] : no
building in /tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2
running: /tmp/pear/temp/redis/configure --with-php-config=/usr/bin/php-config --enable-redis-igbinary=yes --enable-redis-lzf=no
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 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-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20170718
checking for PHP installed headers prefix... /usr/include/php/20170718
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 redis support... yes, shared
checking whether to enable sessions... yes
checking whether to enable igbinary serializer support... yes
checking whether to enable lzf compression... no
checking use system liblzf... no
checking for igbinary includes... /usr/include/php/20170718
checking for redis igbinary support... enabled
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/x86_64-linux-gnu-ld
checking if the linker (/usr/bin/x86_64-linux-gnu-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 how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/x86_64-linux-gnu-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 a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt 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/x86_64-linux-gnu-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/bash /tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/libtool --mode=compile cc -I. -I/tmp/pear/temp/redis -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/include -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/main -I/tmp/pear/temp/redis -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/usr/include/php/20170718/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/redis/redis.c -o redis.lo
libtool: compile: cc -I. -I/tmp/pear/temp/redis -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/include -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/main -I/tmp/pear/temp/redis -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/usr/include/php/20170718/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/redis/redis.c -fPIC -DPIC -o .libs/redis.o
/bin/bash /tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/libtool --mode=compile cc -I. -I/tmp/pear/temp/redis -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/include -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/main -I/tmp/pear/temp/redis -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/usr/include/php/20170718/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/redis/redis_commands.c -o redis_commands.lo
libtool: compile: cc -I. -I/tmp/pear/temp/redis -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/include -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/main -I/tmp/pear/temp/redis -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/usr/include/php/20170718/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/redis/redis_commands.c -fPIC -DPIC -o .libs/redis_commands.o
/bin/bash /tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/libtool --mode=compile cc -I. -I/tmp/pear/temp/redis -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/include -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/main -I/tmp/pear/temp/redis -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/usr/include/php/20170718/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/redis/library.c -o library.lo
libtool: compile: cc -I. -I/tmp/pear/temp/redis -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/include -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/main -I/tmp/pear/temp/redis -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/usr/include/php/20170718/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/redis/library.c -fPIC -DPIC -o .libs/library.o
/bin/bash /tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/libtool --mode=compile cc -I. -I/tmp/pear/temp/redis -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/include -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/main -I/tmp/pear/temp/redis -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/usr/include/php/20170718/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/redis/redis_session.c -o redis_session.lo
libtool: compile: cc -I. -I/tmp/pear/temp/redis -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/include -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/main -I/tmp/pear/temp/redis -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/usr/include/php/20170718/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/redis/redis_session.c -fPIC -DPIC -o .libs/redis_session.o
/bin/bash /tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/libtool --mode=compile cc -I. -I/tmp/pear/temp/redis -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/include -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/main -I/tmp/pear/temp/redis -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/usr/include/php/20170718/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/redis/redis_array.c -o redis_array.lo
libtool: compile: cc -I. -I/tmp/pear/temp/redis -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/include -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/main -I/tmp/pear/temp/redis -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/usr/include/php/20170718/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/redis/redis_array.c -fPIC -DPIC -o .libs/redis_array.o
/bin/bash /tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/libtool --mode=compile cc -I. -I/tmp/pear/temp/redis -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/include -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/main -I/tmp/pear/temp/redis -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/usr/include/php/20170718/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/redis/redis_array_impl.c -o redis_array_impl.lo
libtool: compile: cc -I. -I/tmp/pear/temp/redis -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/include -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/main -I/tmp/pear/temp/redis -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/usr/include/php/20170718/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/redis/redis_array_impl.c -fPIC -DPIC -o .libs/redis_array_impl.o
/bin/bash /tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/libtool --mode=compile cc -I. -I/tmp/pear/temp/redis -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/include -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/main -I/tmp/pear/temp/redis -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/usr/include/php/20170718/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/redis/redis_cluster.c -o redis_cluster.lo
libtool: compile: cc -I. -I/tmp/pear/temp/redis -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/include -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/main -I/tmp/pear/temp/redis -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/usr/include/php/20170718/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/redis/redis_cluster.c -fPIC -DPIC -o .libs/redis_cluster.o
/bin/bash /tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/libtool --mode=compile cc -I. -I/tmp/pear/temp/redis -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/include -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/main -I/tmp/pear/temp/redis -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/usr/include/php/20170718/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/redis/cluster_library.c -o cluster_library.lo
libtool: compile: cc -I. -I/tmp/pear/temp/redis -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/include -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/main -I/tmp/pear/temp/redis -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/usr/include/php/20170718/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/redis/cluster_library.c -fPIC -DPIC -o .libs/cluster_library.o
/bin/bash /tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/libtool --mode=link cc -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/include -I/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/main -I/tmp/pear/temp/redis -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/usr/include/php/20170718/ext -DHAVE_CONFIG_H -g -O2 -o redis.la -export-dynamic -avoid-version -prefer-pic -module -rpath /tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/modules redis.lo redis_commands.lo library.lo redis_session.lo redis_array.lo redis_array_impl.lo redis_cluster.lo cluster_library.lo
libtool: link: cc -shared -fPIC -DPIC .libs/redis.o .libs/redis_commands.o .libs/library.o .libs/redis_session.o .libs/redis_array.o .libs/redis_array_impl.o .libs/redis_cluster.o .libs/cluster_library.o -g -O2 -Wl,-soname -Wl,redis.so -o .libs/redis.so
libtool: link: ( cd ".libs" && rm -f "redis.la" && ln -s "../redis.la" "redis.la" )
/bin/bash /tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/libtool --mode=install cp ./redis.la /tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/modules
libtool: install: cp ./.libs/redis.so /tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/modules/redis.so
libtool: install: cp ./.libs/redis.lai /tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/modules/redis.la
libtool: finish: PATH="/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/sbin" ldconfig -n /tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/modules
----------------------------------------------------------------------
Libraries have been installed in:
/tmp/pear/temp/pear-build-rootDDB4jL/redis-4.0.2/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="/tmp/pear/temp/pear-build-rootDDB4jL/install-redis-4.0.2" install
Installing shared extensions: /tmp/pear/temp/pear-build-rootDDB4jL/install-redis-4.0.2/usr/lib/php/20170718/
running: find "/tmp/pear/temp/pear-build-rootDDB4jL/install-redis-4.0.2" | xargs ls -dils
1058475 4 drwxr-xr-x 3 root root 4096 Mai 24 08:16 /tmp/pear/temp/pear-build-rootDDB4jL/install-redis-4.0.2
1058511 4 drwxr-xr-x 3 root root 4096 Mai 24 08:16 /tmp/pear/temp/pear-build-rootDDB4jL/install-redis-4.0.2/usr
1058512 4 drwxr-xr-x 3 root root 4096 Mai 24 08:16 /tmp/pear/temp/pear-build-rootDDB4jL/install-redis-4.0.2/usr/lib
1058513 4 drwxr-xr-x 3 root root 4096 Mai 24 08:16 /tmp/pear/temp/pear-build-rootDDB4jL/install-redis-4.0.2/usr/lib/php
1058514 4 drwxr-xr-x 2 root root 4096 Mai 24 08:16 /tmp/pear/temp/pear-build-rootDDB4jL/install-redis-4.0.2/usr/lib/php/20170718
1058509 1844 -rwxr-xr-x 1 root root 1886496 Mai 24 08:16 /tmp/pear/temp/pear-build-rootDDB4jL/install-redis-4.0.2/usr/lib/php/20170718/redis.so
Build process completed successfully
Installing '/usr/lib/php/20170718/redis.so'
install ok: channel://pecl.php.net/redis-4.0.2
configuration option "php_ini" is not set to php.ini location
You should add "extension=redis.so" to php.ini
Segmentation fault (core dumped)
why segmentation faulted here i don't know, maybe it ended cleanly without errors and the new extension was added to /usr/lib/php/20170718/.
Attention: This above adds multiple times in /etc/php/7.2/apache2/php.ini the extension to load ad the end of the file. Apache will let you know this like this:
[Thu May 24 08:25:58.749846 2018] [http2:warn] [pid 7718] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
PHP Warning: Module 'redis' already loaded in Unknown on line 0
PHP Warning: Module 'redis' already loaded in Unknown on line 0
PHP Warning: Module 'redis' already loaded in Unknown on line 0
PHP Warning: Module 'redis' already loaded in Unknown on line 0
so just remove the multiple entries due its loaded already in the ini files through:
/etc/php/7.2/cli/conf.d/
and
/etc/php/7.2/apache2/conf.d/
This solved my issues with the missing redis.so library thing and all errors went off.
root@host: php -m
[PHP Modules]
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
imagick
imap
intl
json
ldap
libsmbclient
libxml
mbstring
msgpack
openssl
pcntl
pcre
PDO
pdo_pgsql
pgsql
Phar
posix
readline
redis
Reflection
session
shmop
SimpleXML
smbclient
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
root@host:# php --ini
php --ini
Configuration File (php.ini) Path: /etc/php/7.2/cli
Loaded Configuration File: /etc/php/7.2/cli/php.ini
Scan for additional .ini files in: /etc/php/7.2/cli/conf.d
Additional .ini files parsed: /etc/php/7.2/cli/conf.d/10-opcache.ini,
/etc/php/7.2/cli/conf.d/10-pdo.ini,
/etc/php/7.2/cli/conf.d/15-xml.ini,
/etc/php/7.2/cli/conf.d/20-calendar.ini,
/etc/php/7.2/cli/conf.d/20-ctype.ini,
/etc/php/7.2/cli/conf.d/20-curl.ini,
/etc/php/7.2/cli/conf.d/20-dom.ini,
/etc/php/7.2/cli/conf.d/20-exif.ini,
/etc/php/7.2/cli/conf.d/20-fileinfo.ini,
/etc/php/7.2/cli/conf.d/20-ftp.ini,
/etc/php/7.2/cli/conf.d/20-gd.ini,
/etc/php/7.2/cli/conf.d/20-gettext.ini,
/etc/php/7.2/cli/conf.d/20-iconv.ini,
/etc/php/7.2/cli/conf.d/20-igbinary.ini,
/etc/php/7.2/cli/conf.d/20-imagick.ini,
/etc/php/7.2/cli/conf.d/20-imap.ini,
/etc/php/7.2/cli/conf.d/20-intl.ini,
/etc/php/7.2/cli/conf.d/20-json.ini,
/etc/php/7.2/cli/conf.d/20-ldap.ini,
/etc/php/7.2/cli/conf.d/20-mbstring.ini,
/etc/php/7.2/cli/conf.d/20-msgpack.ini,
/etc/php/7.2/cli/conf.d/20-pdo_pgsql.ini,
/etc/php/7.2/cli/conf.d/20-pgsql.ini,
/etc/php/7.2/cli/conf.d/20-phar.ini,
/etc/php/7.2/cli/conf.d/20-posix.ini,
/etc/php/7.2/cli/conf.d/20-readline.ini,
/etc/php/7.2/cli/conf.d/20-redis.ini,
/etc/php/7.2/cli/conf.d/20-shmop.ini,
/etc/php/7.2/cli/conf.d/20-simplexml.ini,
/etc/php/7.2/cli/conf.d/20-smbclient.ini,
/etc/php/7.2/cli/conf.d/20-sockets.ini,
/etc/php/7.2/cli/conf.d/20-sysvmsg.ini,
/etc/php/7.2/cli/conf.d/20-sysvsem.ini,
/etc/php/7.2/cli/conf.d/20-sysvshm.ini,
/etc/php/7.2/cli/conf.d/20-tokenizer.ini,
/etc/php/7.2/cli/conf.d/20-wddx.ini,
/etc/php/7.2/cli/conf.d/20-xmlreader.ini,
/etc/php/7.2/cli/conf.d/20-xmlwriter.ini,
/etc/php/7.2/cli/conf.d/20-xsl.ini,
/etc/php/7.2/cli/conf.d/20-zip.ini
We used PECL before in the old scripts and yes, we didn't have the log entry but users change the default value from no to yes when updating Redis, so I decided to use this solution instead of using PECL.
So which is best:
I think option 1 is best.
Refs:
https://github.com/nextcloud/vm/commit/672c99778a29336f05cdeed50583b337abd3f85e
https://github.com/nextcloud/vm/commit/c3fc43cc608077ae40436c5d0292b2f7db9675ac#diff-6106caeae41ab8eab27ceea759b9a1daL40
https://github.com/nextcloud/vm/commit/c3fc43cc608077ae40436c5d0292b2f7db9675ac#diff-e8ae2ca50667181e7b480d6f8e55ad75R27
So it should rather used with build option “no” for redis support? I don’t understand - can you be more specific why you discarded redis built in on php module ? Think this are 2 different things - unless Ubuntu php package is somehow broken and my intention was to get latest redis option to php - this was archived by PECL :-)
When you build with PECL you can choose to enable support for memcache and some other stuff (I don't remember now) and most users think "hey, that sounds good, let's enable it" and then change the default [no] to [yes]. Problem is, that will break Redis as no memcache is installed.
I fixed that by always answering "no" with the yes command as you can sse in the code I linked, but I'd rather work with built in dependencies than using something like PECL, which is 3:rd-party.
@fgrosswig Any update here?
i rather would close this issue. I would prefer the way to have an "un-noisy" log handling so maybe this is only on Ubuntu 18 LTS. There is a problem with redis anyway and my solution above fix it sufficient. :-)
OK, let's close this and hope that the maintainer of Redis in Ubuntu fixes the issue in comiong releases. :)
The error still in NC 15... Anyone?
@pcreadycl The VM uses the PECL installation method since some versions back. Just run the built in update script to fix it.
sudo bash /var/scripts/update.sh
try to change the priority of loading extension:
20-igbinary.ini
30-redis.ini
@wmh Is this for the current PECL implementation or is it for the old one?
Afaik there are no issues with the new implementation.
Most helpful comment
ok i might found a proper solution to this.
i have done this under Ubuntu 18.04 LTS:
apt-get install php7.2-devpecl install rediswhy segmentation faulted here i don't know, maybe it ended cleanly without errors and the new extension was added to /usr/lib/php/20170718/.
Attention: This above adds multiple times in /etc/php/7.2/apache2/php.ini the extension to load ad the end of the file. Apache will let you know this like this:
so just remove the multiple entries due its loaded already in the ini files through:
/etc/php/7.2/cli/conf.d/and
/etc/php/7.2/apache2/conf.d/This solved my issues with the missing redis.so library thing and all errors went off.