Discover Centmin Mod today
Register Now

Beta Branch redo centmin.sh menu option 13 for redis php extension

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jun 8, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    55,182
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    10:06 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  2. eva2000

    eva2000 Administrator Staff Member

    55,182
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    10:06 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Code (Text):
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com    
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2/5.5 & 10.x Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install/Reinstall Redis PHP Extension
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Install/Re-Install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 13
    --------------------------------------------------------
    

    Code (Text):
    --------------------------------------------------------
             Redis PHP Extension Sub-Menu            
    --------------------------------------------------------
    1). Install Redis PHP Extension
    2). Reinstall Redis PHP Extension
    3). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 3 ] 2

    Code (Text):
    php --ri redis
    
    redis
    
    Redis Support => enabled
    Redis Version => 3.0.0-rc1
    
     
    Last edited: Jun 8, 2016
  3. rdan

    rdan Well-Known Member

    5,449
    1,410
    113
    May 25, 2014
    Ratings:
    +2,204
    Local Time:
    8:06 PM
    Mainline
    10.2
    I got this:
    Code:
    *************************************************
    * Installing redis PHP extension
    *************************************************
    Downloading redis PHP extension...
    Checking for igbinary.so ...
    Check if /usr/local/lib/php/extensions/no-debug-non-zts-20151012/igbinary.so or /etc/centminmod/php.d/igbinary.ini exists
    service php-fpm reload
    Reload service php-fpm  done
    Check for different igbinary versions ...
    service php-fpm reload
    Reload service php-fpm  done
    Check if phpredis-2.2.7.tgz exists
    Downloading redis PHP extension..
    Download phpredis-2.2.7.tgz ...
    Error: phpredis-2.2.7.tgz not found !!! Downloading now......
    2016-06-08 07:11:32 URL:https://codeload.github.com/phpredis/phpredis/tar.gz/2.2.7 [137790/137790] -> "phpredis-2.2.7.tgz" [1]
    Download done.
    phpredis-2.2.7.tgz valid file.
    
    Compiling PHP redis-2.2.7 extension...
    /svr-setup
    cd /svr-setup
    make: *** No rule to make target `clean'.  Stop.
    Configuring for:
    PHP Api Version:         20151012
    Zend Module Api No:      20151012
    Zend Extension Api No:   320151012
    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 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 ccache gcc accepts -g... yes
    checking for ccache gcc option to accept ISO C89... none needed
    checking how to run the C preprocessor... ccache gcc -E
    checking for icc... no
    checking for suncc... no
    checking whether ccache gcc and cc understand -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-20151012
    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... re2c
    checking for re2c version... 0.14.3 (ok)
    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... no
    checking for redis igbinary support... disabled
    checking for ld used by ccache gcc... /bin/ld
    checking if the linker (/bin/ld) is GNU ld... yes
    checking for /bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /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... 1572864
    checking command to parse /bin/nm -B output from ccache gcc object... ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking if ccache gcc supports -fno-rtti -fno-exceptions... no
    checking for ccache gcc option to produce PIC... -fPIC
    checking if ccache gcc PIC flag -fPIC works... yes
    checking if ccache gcc static flag -static works... no
    checking if ccache gcc supports -c -o file.o... yes
    checking whether the ccache gcc linker (/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
    checking whether the ccache g++ linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking for ccache g++ option to produce PIC...
    checking if ccache g++ static flag  works... yes
    checking if ccache g++ supports -c -o file.o... yes
    checking whether the ccache g++ linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    (cached) (cached) checking how to hardcode library paths into programs... unsupported
    configure: creating ./config.status
    config.status: creating config.h
    /bin/sh /svr-setup/phpredis-2.2.7/libtool --mode=compile ccache gcc  -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/phpredis-2.2.7/redis.c -o redis.lo
    /bin/sh /svr-setup/phpredis-2.2.7/libtool --mode=compile ccache gcc  -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/phpredis-2.2.7/library.c -o library.lo
    /bin/sh /svr-setup/phpredis-2.2.7/libtool --mode=compile ccache gcc  -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/phpredis-2.2.7/redis_session.c -o redis_session.lo
    /bin/sh /svr-setup/phpredis-2.2.7/libtool --mode=compile ccache gcc  -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/phpredis-2.2.7/redis_array.c -o redis_array.lo
    /bin/sh /svr-setup/phpredis-2.2.7/libtool --mode=compile ccache gcc  -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/phpredis-2.2.7/redis_array_impl.c -o redis_array_impl.lo
    mkdir .libs
    mkdir .libs
    mkdir: cannot create directory '.libs': File exists
    ccache gcc -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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 -DHAVE_CONFIG_H -g -O2 -c /svr-setup/phpredis-2.2.7/redis.c  -fPIC -DPIC -o .libs/redis.o
    ccache gcc -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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 -DHAVE_CONFIG_H -g -O2 -c /svr-setup/phpredis-2.2.7/redis_array.c  -fPIC -DPIC -o .libs/redis_array.o
    ccache gcc -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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 -DHAVE_CONFIG_H -g -O2 -c /svr-setup/phpredis-2.2.7/redis_array_impl.c  -fPIC -DPIC -o .libs/redis_array_impl.o
    ccache gcc -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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 -DHAVE_CONFIG_H -g -O2 -c /svr-setup/phpredis-2.2.7/library.c  -fPIC -DPIC -o .libs/library.o
    ccache gcc -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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 -DHAVE_CONFIG_H -g -O2 -c /svr-setup/phpredis-2.2.7/redis_session.c  -fPIC -DPIC -o .libs/redis_session.o
    In file included from /svr-setup/phpredis-2.2.7/redis_array.c:24:0:
    /svr-setup/phpredis-2.2.7/common.h:3:40: fatal error: ext/standard/php_smart_str.h: No such file or directory
    #include <ext/standard/php_smart_str.h>
                                            ^
    compilation terminated.
    In file included from /svr-setup/phpredis-2.2.7/redis_array_impl.h:9:0,
                     from /svr-setup/phpredis-2.2.7/redis_array_impl.c:19:
    /svr-setup/phpredis-2.2.7/common.h:3:40: fatal error: ext/standard/php_smart_str.h: No such file or directory
    #include <ext/standard/php_smart_str.h>
                                            ^
    compilation terminated.
    In file included from /svr-setup/phpredis-2.2.7/redis_session.c:23:0:
    /svr-setup/phpredis-2.2.7/common.h:3:40: fatal error: ext/standard/php_smart_str.h: No such file or directory
    #include <ext/standard/php_smart_str.h>
                                            ^
    compilation terminated.
    In file included from /svr-setup/phpredis-2.2.7/redis.c:27:0:
    /svr-setup/phpredis-2.2.7/common.h:3:40: fatal error: ext/standard/php_smart_str.h: No such file or directory
    #include <ext/standard/php_smart_str.h>
                                            ^
    compilation terminated.
    In file included from /svr-setup/phpredis-2.2.7/library.c:4:0:
    /svr-setup/phpredis-2.2.7/common.h:3:40: fatal error: ext/standard/php_smart_str.h: No such file or directory
    #include <ext/standard/php_smart_str.h>
                                            ^
    compilation terminated.
    make: *** [redis_array_impl.lo] Error 1
    make: *** Waiting for unfinished jobs....
    make: *** [redis_array.lo] Error 1
    make: *** [redis_session.lo] Error 1
    make: *** [library.lo] Error 1
    make: *** [redis.lo] Error 1
    /bin/sh /svr-setup/phpredis-2.2.7/libtool --mode=compile ccache gcc  -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/phpredis-2.2.7/redis.c -o redis.lo
    ccache gcc -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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 -DHAVE_CONFIG_H -g -O2 -c /svr-setup/phpredis-2.2.7/redis.c  -fPIC -DPIC -o .libs/redis.o
    In file included from /svr-setup/phpredis-2.2.7/redis.c:27:0:
    /svr-setup/phpredis-2.2.7/common.h:3:40: fatal error: ext/standard/php_smart_str.h: No such file or directory
    #include <ext/standard/php_smart_str.h>
                                            ^
    compilation terminated.
    make: *** [redis.lo] Error 1
    
    --------------------------------------------------------
    
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,182
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    10:06 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    which PHP version ? try deleting old /svr-setup/phpredis-2.2.7* and retry again
    Code (Text):
    rm -rf /svr-setup/phpredis-2.2.7*
     
  5. rdan

    rdan Well-Known Member

    5,449
    1,410
    113
    May 25, 2014
    Ratings:
    +2,204
    Local Time:
    8:06 PM
    Mainline
    10.2
    PHP 7.0.7
    rm -rf /svr-setup/*
    I run menu 13>2 again, same error.
     
  6. eva2000

    eva2000 Administrator Staff Member

    55,182
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    10:06 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    There's the problem then on PHP 7 it should use redis 3.0rc1 php extension and 2.2.7 is for PHP 5.6 and lower. Make sure you didn't mess up persistent config file at /etc/centminmod/custom_config.inc - what's inside yours right now ? Centmin mod 123.09beta01 should detect whether your installed PHP version is PHP 7 or if you have selected PHP 7 based version and install the appropriate redis php extension version.

    Every centmin.sh menu option has a full server log created with time stamped file name at /root/centminlogs. You can check that specific error log for clues or copy and paste log contents and post to pastebin.com or gist.github.com for sharing. So check your redis php extension upgrade logs named /root/centminlogs/*redis-php-reinstall.log

    Use this command to list all logs in /root/centminlogs in date descending order so most recent logs are at bottom
    Code:
    ls -lAhrt /root/centminlogs
    For example
    Code:
    ls -lAhrt /root/centminlogs
    total 16M
    -rw-r--r-- 1 root root 9.8K Sep 18 13:47 centminmod_1.2.3-eva2000.08_180915-094703_yuminstall_centos6.log
    -rw-r--r-- 1 root root 52K Sep 18 13:48 centminmod_yumtimes_180915-094703.log
    -rw-r--r-- 1 root root 37 Sep 18 13:48 centminmod_profiletimes_180915-094703.log
    -rw-r--r-- 1 root root 234K Sep 18 13:48 centminmod_downloadtimes_180915-094703.log
    -rw-r--r-- 1 root root 199 Sep 18 13:48 securedtmp.log
    -rw-r--r-- 1 root root 44 Sep 18 13:50 centminmod_libresslinstalltime_180915-094703.log
    -rw-r--r-- 1 root root 1.2K Sep 18 13:50 gcc_native.log
    -rw-r--r-- 1 root root 939K Sep 18 13:52 centminmod_ngxinstalltime_180915-094703.log
    -rw-r--r-- 1 root root 58 Sep 18 13:55 centminmod_phpinstalltime_180915-094703.log
    -rw-r--r-- 1 root root 25K Sep 18 13:59 centminmod_1.2.3-eva2000.08_180915-094703_yum-log.log
    -rw-r--r-- 1 root root 20 Sep 18 13:59 install.utc.time.log
    -rw-r--r-- 1 root root 2.6M Sep 18 13:59 centminmod_1.2.3-eva2000.08_180915-094703_install.log
    -rw-r--r-- 1 root root 49 Sep 18 13:59 firstyum_installtime_180915-094252.log
    -rw-r--r-- 1 root root 12K Sep 18 14:02 centminmod_1.2.3-eva2000.08_180915-140110_nginx_addvhost.log
    -rw-r--r-- 1 root root 1.8M Sep 19 05:58 centminmod_1.2.3-eva2000.08_190915-055517_php_upgrade.log
    -rw-r--r-- 1 root root 1.8M Sep 19 06:22 centminmod_1.2.3-eva2000.08_190915-061910_php_upgrade.log
    -rw-r--r-- 1 root root 939K Sep 19 06:28 centminmod_1.2.3-eva2000.08_190915-062728_php_upgrade.log
    -rw-r--r-- 1 root root 1.8M Sep 19 06:32 centminmod_1.2.3-eva2000.08_190915-062943_php_upgrade.log
    -rw-r--r-- 1 root root 1.8M Sep 19 06:53 centminmod_1.2.3-eva2000.08_190915-065026_php_upgrade.log
    -rw-r--r-- 1 root root 1.8M Sep 19 07:14 centminmod_1.2.3-eva2000.08_190915-065820_php_upgrade.log
    -rw-r--r-- 1 root root 381 Sep 19 07:15 zendopcache_passfile.txt
    -rw-r--r-- 1 root root 23K Sep 19 07:15 centminmod_1.2.3-eva2000.08_190915-065820_zendopcache_install_submenu.log
    -rw-r--r-- 1 root root 1.5K Sep 19 08:20 centminmod_1.2.3-eva2000.08_190915-081959_git_envsetup.log
    -rw-r--r-- 1 root root 3.6K Sep 19 08:22 centminmod_1.2.3-eva2000.08_190915-082216_git_updatenew_branch.log
    -rw-r--r-- 1 root root 1.8M Sep 19 08:26 centminmod_1.2.3-eva2000.09_190915-082435_php_upgrade.log
    -rw-r--r-- 1 root root 7.8K Sep 20 17:17 centminmod_200915-171650_nginx_addvhost_nv.log
    -rw-r--r-- 1 root root 8.7K Sep 20 19:40 centminmod_1.2.3-eva2000.09_200915-193955_nginx_addvhost.log
    -rw-r--r-- 1 root root 9.3K Sep 20 20:04 centminmod_200915-200339_nginx_addvhost_nv.log
     
  7. rdan

    rdan Well-Known Member

    5,449
    1,410
    113
    May 25, 2014
    Ratings:
    +2,204
    Local Time:
    8:06 PM
    Mainline
    10.2
    Code:
    EMAIL='email@gmail.com'          # Server notification email address enter only 1 address
    ZONEINFO=Asia/Manila  # Set Timezone
    NGINX_IPV='n' #NGINX IPV6 compile support for unattended mode only
    ENABLEMOTD='n'
    
    CUSTOMSERVERNAME='y'
    CUSTOMSERVERSTRING='nginx'
    
    AUTO_GITUPDATE='y'
    
    NSD_DISABLED='y'              # when set to =y, NSD disabled by default with chkconfig off
    MEMCACHED_DISABLED='y'        # when set to =y,  Memcached server disabled by default via chkconfig off
    PUREFTPD_DISABLED='y'         # when set to =y, Pure-ftpd service disabled by default with chkconfig off
    
    NGINX_UPDATEMAINTENANCE='n'
    PHP_UPDATEMAINTENANCE='n'
    MARIADB_UPDATEMAINTENANCE='n'
    
    NSD_INSTALL='n'              # Install NSD (DNS Server)
    NGXMODULE_ALTORDER='n'       # nginx configure module ordering alternative order
    NGINX_DEBUG='n'              # Enable & reinstall Nginx debug log nginx.org/en/docs/debugging_log.html & wiki.nginx.org/Debugging
    NGINX_HTTP2='y'              # Nginx http/2 patch https://community.centminmod.com/threads/4127/
    NGINX_MODSECURITY=n          # modsecurity module support https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual#Installation_for_NGINX
    NGINX_RDNS='n'               # https://github.com/flant/nginx-http-rdns
    NGINX_NJS='n'                # nginScript https://www.nginx.com/blog/launching-nginscript-and-looking-ahead/
    NGINX_GEOIP='n'              # Nginx GEOIP module install
    NGINX_SPDY='y'               # Nginx SPDY support
    NGINX_STUBSTATUS='n'         # http://nginx.org/en/docs/http/ngx_http_stub_status_module.html required for nginx statistics
    NGINX_SUB='n'                # http://nginx.org/en/docs/http/ngx_http_sub_module.html
    NGINX_ADDITION='n'           # http://nginx.org/en/docs/http/ngx_http_addition_module.html
    NGINX_IMAGEFILTER='n'        # http://nginx.org/en/docs/http/ngx_http_image_filter_module.html
    NGINX_PERL='n'               # http://nginx.org/en/docs/http/ngx_http_perl_module.html
    NGINX_XSLT='n'               # http://nginx.org/en/docs/http/ngx_http_xslt_module.html
    NGINX_CACHEPURGE='n'         # https://github.com/FRiCKLE/ngx_cache_purge/
    NGINX_ACCESSKEY='n'          #
    NGINX_HTTPCONCAT='n'         # https://github.com/alibaba/nginx-http-concat
    NGINX_THREADS='n'            # https://www.nginx.com/blog/thread-pools-boost-performance-9x/
    NGINX_STREAM='n'             # http://nginx.org/en/docs/stream/ngx_stream_core_module.html
    NGINX_RTMP='n'               # Nginx RTMP Module support https://github.com/arut/nginx-rtmp-module
    NGINX_FLV='n'                # http://nginx.org/en/docs/http/ngx_http_flv_module.html
    NGINX_MP4='n'                # Nginx MP4 Module http://nginx.org/en/docs/http/ngx_http_mp4_module.html
    NGINX_AUTHREQ='n'            # http://nginx.org/en/docs/http/ngx_http_auth_request_module.html
    NGINX_SECURELINK='n'         # http://nginx.org/en/docs/http/ngx_http_secure_link_module.html
    NGINX_FANCYINDEX='n'         # http://wiki.nginx.org/NgxFancyIndex
    NGINX_VHOSTSTATS='n'         # https://github.com/vozlt/nginx-module-vts
    NGINX_LIBBROTLI='n'          # https://github.com/google/ngx_brotli
    NGINX_LIBBROTLISTATIC='n'
    NGINX_PAGESPEED='n'          # Install ngx_pagespeed
    NGINX_PAGESPEEDGITMASTER='n' # Install ngx_pagespeed from official github master instead 
    NGINX_PASSENGER='n'          # Install Phusion Passenger requires installing addons/passenger.sh before hand
    NGINX_WEBDAV='n'             # Nginx WebDAV and nginx-dav-ext-module
    NGINX_HTTPREDIS='n'          # Nginx redis http://wiki.nginx.org/HttpRedisModule
    ORESTY_HEADERSMORE='n'       # openresty headers more https://github.com/openresty/headers-more-nginx-module
    ORESTY_HEADERSMOREGIT='n'    # use git master instead of version specific
    NGINX_STICKY='n'             # nginx sticky module https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng
    NGINX_UPSTREAMCHECK='n'      # nginx upstream check https://github.com/yaoweibin/nginx_upstream_check_module
    NGINX_OPENRESTY='n'          # Agentzh's openresty Nginx modules
    ORESTY_SETMISCGIT='n'        # use git master instead of version specific
    ORESTY_ECHOGIT='n'           # use git master instead of version specific
    
    LUAJIT_GITINSTALL='n'        # opt to install luajit 2.1 from dev branch http://repo.or.cz/w/luajit-2.0.git/shortlog/refs/heads/v2.1
    
    ORESTY_LUANGINX='n'             # enable or disable or ORESTY_LUA* nginx modules below
    NGX_LUAUPSTREAM='n'                # disable https://github.com/openresty/lua-upstream-nginx-module
    NGX_LUAUPSTREAMCACHE='n'           # disable https://github.com/cloudflare/lua-upstream-cache-nginx-module
    
    PHPGEOIP_ALWAYS='n'          # GeoIP php extension is always reinstalled on php recompiles
    PHPDEBUGMODE='n'             # --enable-debug PHP compile flag
    PHPFINFO='n'                 # Disable or Enable PHP File Info extension
    PHPPCNTL='n'                 # Disable or Enable PHP Process Control extension
    PHPINTL='n'                  # Disable or Enable PHP intl extension
    PHPRECODE=n                  # Disable or Enable PHP Recode extension
    PHPSNMP='n'                  # Disable or Enable PHP SNMP extension
    PHPIMAGICK='y'               # Disable or Enable PHP ImagicK extension
    PHPMAILPARSE='n'             # Disable or Enable PHP mailparse extension
    PHPIONCUBE='n'               # Disable or Enable Ioncube Loader via addons/ioncube.sh
    POSTGRESQL='n'               # set to =y to install PostgreSQL 9.4 server, devel packages and pdo-pgsql PHP extension
    
    NGINX_VHOSTSSL='n'           # enable centmin.sh menu 2 prompt to create self signed SSL vhost 2nd vhost conf
    NGINXBACKUP='n'
    CLOUDFLARE_PATCHSSL='n'    # set 'y' to implement Cloudflare's chacha20 patch https://github.com/cloudflare/sslconfig
    
    MEMCACHED_INSTALL='n'         # Install Memcached
    PHPREDIS='y'                # redis PHP extension install
    PHPMONGODB='n'              # MongoDB PHP extension install
    PHP_FTPEXT='n'              # ftp PHP extension
    PHP_MEMCACHE='n'            # memcache PHP extension
    PHP_MEMCACHED='n'           # memcached PHP extension
    PHP_VERSION='7.0.7'        # Use this version of PHP
    IGBINARY_INSTALL='n'        # install or not igbinary support for APC and Memcached server
    ZOPCACHEDFT='y'
    PHP_EXTRAOPTS=""
     
  8. eva2000

    eva2000 Administrator Staff Member

    55,182
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    10:06 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what happens if you comment out in /etc/centminmod/custom_config.inc
    Code (Text):
    #PHP_VERSION='7.0.7'        # Use this version of PHP
    

    You don't need to set this as centmin.sh menu option 5 asks for the specific version
     
  9. rdan

    rdan Well-Known Member

    5,449
    1,410
    113
    May 25, 2014
    Ratings:
    +2,204
    Local Time:
    8:06 PM
    Mainline
    10.2
    Same error :(
    Code:
    --------------------------------------------------------
    *************************************************
    * Installing redis PHP extension
    *************************************************
    Downloading redis PHP extension...
    Checking for igbinary.so ...
    Check if /usr/local/lib/php/extensions/no-debug-non-zts-20151012/igbinary.so or /etc/centminmod/php.d/igbinary.ini exists
    service php-fpm reload
    Reload service php-fpm  done
    Check for different igbinary versions ...
    service php-fpm reload
    Reload service php-fpm  done
    Check if phpredis-2.2.7.tgz exists
    Downloading redis PHP extension..
    Download phpredis-2.2.7.tgz ...
    Error: phpredis-2.2.7.tgz not found !!! Downloading now......
    2016-06-08 07:30:50 URL:https://codeload.github.com/phpredis/phpredis/tar.gz/2.2.7 [137790] -> "phpredis-2.2.7.tgz" [1]
    Download done.
    phpredis-2.2.7.tgz valid file.
    
    Compiling PHP redis-2.2.7 extension...
    /svr-setup
    cd /svr-setup
    make: *** No rule to make target `clean'.  Stop.
    Configuring for:
    PHP Api Version:         20151012
    Zend Module Api No:      20151012
    Zend Extension Api No:   320151012
    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 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 ccache gcc accepts -g... yes
    checking for ccache gcc option to accept ISO C89... none needed
    checking how to run the C preprocessor... ccache gcc -E
    checking for icc... no
    checking for suncc... no
    checking whether ccache gcc and cc understand -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-20151012
    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... re2c
    checking for re2c version... 0.14.3 (ok)
    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... no
    checking for redis igbinary support... disabled
    checking for ld used by ccache gcc... /bin/ld
    checking if the linker (/bin/ld) is GNU ld... yes
    checking for /bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /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... 1572864
    checking command to parse /bin/nm -B output from ccache gcc object... ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking if ccache gcc supports -fno-rtti -fno-exceptions... no
    checking for ccache gcc option to produce PIC... -fPIC
    checking if ccache gcc PIC flag -fPIC works... yes
    checking if ccache gcc static flag -static works... no
    checking if ccache gcc supports -c -o file.o... yes
    checking whether the ccache gcc linker (/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
    checking whether the ccache g++ linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking for ccache g++ option to produce PIC...
    checking if ccache g++ static flag  works... yes
    checking if ccache g++ supports -c -o file.o... yes
    checking whether the ccache g++ linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    (cached) (cached) checking how to hardcode library paths into programs... unsupported
    configure: creating ./config.status
    config.status: creating config.h
    /bin/sh /svr-setup/phpredis-2.2.7/libtool --mode=compile ccache gcc  -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/phpredis-2.2.7/redis.c -o redis.lo
    /bin/sh /svr-setup/phpredis-2.2.7/libtool --mode=compile ccache gcc  -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/phpredis-2.2.7/library.c -o library.lo
    /bin/sh /svr-setup/phpredis-2.2.7/libtool --mode=compile ccache gcc  -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/phpredis-2.2.7/redis_session.c -o redis_session.lo
    /bin/sh /svr-setup/phpredis-2.2.7/libtool --mode=compile ccache gcc  -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/phpredis-2.2.7/redis_array.c -o redis_array.lo
    /bin/sh /svr-setup/phpredis-2.2.7/libtool --mode=compile ccache gcc  -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/phpredis-2.2.7/redis_array_impl.c -o redis_array_impl.lo
    mkdir .libs
    ccache gcc -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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 -DHAVE_CONFIG_H -g -O2 -c /svr-setup/phpredis-2.2.7/redis.c  -fPIC -DPIC -o .libs/redis.o
    ccache gcc -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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 -DHAVE_CONFIG_H -g -O2 -c /svr-setup/phpredis-2.2.7/library.c  -fPIC -DPIC -o .libs/library.o
    ccache gcc -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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 -DHAVE_CONFIG_H -g -O2 -c /svr-setup/phpredis-2.2.7/redis_session.c  -fPIC -DPIC -o .libs/redis_session.o
    ccache gcc -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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 -DHAVE_CONFIG_H -g -O2 -c /svr-setup/phpredis-2.2.7/redis_array.c  -fPIC -DPIC -o .libs/redis_array.o
    ccache gcc -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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 -DHAVE_CONFIG_H -g -O2 -c /svr-setup/phpredis-2.2.7/redis_array_impl.c  -fPIC -DPIC -o .libs/redis_array_impl.o
    In file included from /svr-setup/phpredis-2.2.7/redis_array_impl.h:9:0,
                     from /svr-setup/phpredis-2.2.7/redis_array_impl.c:19:
    /svr-setup/phpredis-2.2.7/common.h:3:40: fatal error: ext/standard/php_smart_str.h: No such file or directory
    #include <ext/standard/php_smart_str.h>
                                            ^
    compilation terminated.
    In file included from /svr-setup/phpredis-2.2.7/redis_array.c:24:0:
    /svr-setup/phpredis-2.2.7/common.h:3:40: fatal error: ext/standard/php_smart_str.h: No such file or directory
    #include <ext/standard/php_smart_str.h>
                                            ^
    compilation terminated.
    In file included from /svr-setup/phpredis-2.2.7/library.c:4:0:
    /svr-setup/phpredis-2.2.7/common.h:3:40: fatal error: ext/standard/php_smart_str.h: No such file or directory
    #include <ext/standard/php_smart_str.h>
                                            ^
    compilation terminated.
    In file included from /svr-setup/phpredis-2.2.7/redis.c:27:0:
    /svr-setup/phpredis-2.2.7/common.h:3:40: fatal error: ext/standard/php_smart_str.h: No such file or directory
    #include <ext/standard/php_smart_str.h>
                                            ^
    In file included from /svr-setup/phpredis-2.2.7/redis_session.c:23:0:
    /svr-setup/phpredis-2.2.7/common.h:3:40: fatal error: ext/standard/php_smart_str.h: No such file or directory
    #include <ext/standard/php_smart_str.h>
                                            ^
    compilation terminated.
    compilation terminated.
    make: *** [redis_array.lo] Error 1
    make: *** Waiting for unfinished jobs....
    make: *** [library.lo] Error 1
    make: *** [redis_array_impl.lo] Error 1
    make: *** [redis.lo] Error 1
    make: *** [redis_session.lo] Error 1
    /bin/sh /svr-setup/phpredis-2.2.7/libtool --mode=compile ccache gcc  -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/phpredis-2.2.7/redis.c -o redis.lo
    ccache gcc -I. -I/svr-setup/phpredis-2.2.7 -DPHP_ATOM_INC -I/svr-setup/phpredis-2.2.7/include -I/svr-setup/phpredis-2.2.7/main -I/svr-setup/phpredis-2.2.7 -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 -DHAVE_CONFIG_H -g -O2 -c /svr-setup/phpredis-2.2.7/redis.c  -fPIC -DPIC -o .libs/redis.o
    In file included from /svr-setup/phpredis-2.2.7/redis.c:27:0:
    /svr-setup/phpredis-2.2.7/common.h:3:40: fatal error: ext/standard/php_smart_str.h: No such file or directory
    #include <ext/standard/php_smart_str.h>
                                            ^
    compilation terminated.
    make: *** [redis.lo] Error 1
    
    --------------------------------------------------------
    
     
  10. eva2000

    eva2000 Administrator Staff Member

    55,182
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    10:06 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    strange not able to reproduce this on test servers running PHP 7.0.7
    Code (Text):
    php -v
    PHP 7.0.7 (cli) (built: Jun  5 2016 14:33:03) ( NTS )
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

    Code (Text):
    php --ri redis
    
    redis
    
    Redis Support => enabled
    Redis Version => 3.0.0-rc1
    

    centmin.sh menu option 13, submenu option 2
    Code (Text):
    --------------------------------------------------------
             Redis PHP Extension Sub-Menu              
    --------------------------------------------------------
    1). Install Redis PHP Extension
    2). Reinstall Redis PHP Extension
    3). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 3 ] 2
    

    Code (Text):
    Check if phpredis-2.2.7.tgz exists
    Compiling PHP redis-2.2.7 extension for PHP 7.x ...
    /svr-setup/igbinary-php7
    cd /svr-setup
    Cloning into 'redis-php7'...
    make: *** No rule to make target `clean'.  Stop.
    Configuring for:
    PHP Api Version:         20151012
    Zend Module Api No:      20151012
    Zend Extension Api No:   320151012
    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 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 ccache gcc accepts -g... yes
    checking for ccache gcc option to accept ISO C89... none needed
    checking how to run the C preprocessor... ccache gcc -E
    checking for icc... no
    checking for suncc... no
    checking whether ccache gcc and cc understand -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-20151012
    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... re2c
    checking for re2c version... 0.14.3 (ok)
    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 for igbinary includes... /usr/local/include/php
    checking for redis igbinary support... enabled
    checking for ld used by ccache gcc... /bin/ld
    checking if the linker (/bin/ld) is GNU ld... yes
    checking for /bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /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... 1572864
    checking command to parse /bin/nm -B output from ccache gcc object... ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking if ccache gcc supports -fno-rtti -fno-exceptions... no
    checking for ccache gcc option to produce PIC... -fPIC
    checking if ccache gcc PIC flag -fPIC works... yes
    checking if ccache gcc static flag -static works... no
    checking if ccache gcc supports -c -o file.o... yes
    checking whether the ccache gcc linker (/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
    checking whether the ccache g++ linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking for ccache g++ option to produce PIC...
    checking if ccache g++ static flag  works... yes
    checking if ccache g++ supports -c -o file.o... yes
    checking whether the ccache g++ linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    (cached) (cached) checking how to hardcode library paths into programs... unsupported
    configure: creating ./config.status
    config.status: creating config.h
    /bin/sh /svr-setup/redis-php7/libtool --mode=compile ccache gcc  -I. -I/svr-setup/redis-php7 -DPHP_ATOM_INC -I/svr-setup/redis-php7/include -I/svr-setup/redis-php7/main -I/svr-setup/redis-php7 -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/local/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/redis-php7/redis.c -o redis.lo
    /bin/sh /svr-setup/redis-php7/libtool --mode=compile ccache gcc  -I. -I/svr-setup/redis-php7 -DPHP_ATOM_INC -I/svr-setup/redis-php7/include -I/svr-setup/redis-php7/main -I/svr-setup/redis-php7 -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/local/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/redis-php7/redis_commands.c -o redis_commands.lo
    /bin/sh /svr-setup/redis-php7/libtool --mode=compile ccache gcc  -I. -I/svr-setup/redis-php7 -DPHP_ATOM_INC -I/svr-setup/redis-php7/include -I/svr-setup/redis-php7/main -I/svr-setup/redis-php7 -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/local/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/redis-php7/library.c -o library.lo
    /bin/sh /svr-setup/redis-php7/libtool --mode=compile ccache gcc  -I. -I/svr-setup/redis-php7 -DPHP_ATOM_INC -I/svr-setup/redis-php7/include -I/svr-setup/redis-php7/main -I/svr-setup/redis-php7 -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/local/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/redis-php7/redis_session.c -o redis_session.lo
    /bin/sh /svr-setup/redis-php7/libtool --mode=compile ccache gcc  -I. -I/svr-setup/redis-php7 -DPHP_ATOM_INC -I/svr-setup/redis-php7/include -I/svr-setup/redis-php7/main -I/svr-setup/redis-php7 -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/local/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/redis-php7/redis_array.c -o redis_array.lo
    mkdir .libs
    ccache gcc -I. -I/svr-setup/redis-php7 -DPHP_ATOM_INC -I/svr-setup/redis-php7/include -I/svr-setup/redis-php7/main -I/svr-setup/redis-php7 -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/local/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /svr-setup/redis-php7/redis.c  -fPIC -DPIC -o .libs/redis.o
    ccache gcc -I. -I/svr-setup/redis-php7 -DPHP_ATOM_INC -I/svr-setup/redis-php7/include -I/svr-setup/redis-php7/main -I/svr-setup/redis-php7 -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/local/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /svr-setup/redis-php7/redis_commands.c  -fPIC -DPIC -o .libs/redis_commands.o
    ccache gcc -I. -I/svr-setup/redis-php7 -DPHP_ATOM_INC -I/svr-setup/redis-php7/include -I/svr-setup/redis-php7/main -I/svr-setup/redis-php7 -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/local/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /svr-setup/redis-php7/library.c  -fPIC -DPIC -o .libs/library.o
    ccache gcc -I. -I/svr-setup/redis-php7 -DPHP_ATOM_INC -I/svr-setup/redis-php7/include -I/svr-setup/redis-php7/main -I/svr-setup/redis-php7 -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/local/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /svr-setup/redis-php7/redis_session.c  -fPIC -DPIC -o .libs/redis_session.o
    ccache gcc -I. -I/svr-setup/redis-php7 -DPHP_ATOM_INC -I/svr-setup/redis-php7/include -I/svr-setup/redis-php7/main -I/svr-setup/redis-php7 -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/local/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /svr-setup/redis-php7/redis_array.c  -fPIC -DPIC -o .libs/redis_array.o
    /bin/sh /svr-setup/redis-php7/libtool --mode=compile ccache gcc  -I. -I/svr-setup/redis-php7 -DPHP_ATOM_INC -I/svr-setup/redis-php7/include -I/svr-setup/redis-php7/main -I/svr-setup/redis-php7 -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/local/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/redis-php7/redis_array_impl.c -o redis_array_impl.lo
    /bin/sh /svr-setup/redis-php7/libtool --mode=compile ccache gcc  -I. -I/svr-setup/redis-php7 -DPHP_ATOM_INC -I/svr-setup/redis-php7/include -I/svr-setup/redis-php7/main -I/svr-setup/redis-php7 -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/local/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/redis-php7/redis_cluster.c -o redis_cluster.lo
    /bin/sh /svr-setup/redis-php7/libtool --mode=compile ccache gcc  -I. -I/svr-setup/redis-php7 -DPHP_ATOM_INC -I/svr-setup/redis-php7/include -I/svr-setup/redis-php7/main -I/svr-setup/redis-php7 -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/local/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/redis-php7/cluster_library.c -o cluster_library.lo
    ccache gcc -I. -I/svr-setup/redis-php7 -DPHP_ATOM_INC -I/svr-setup/redis-php7/include -I/svr-setup/redis-php7/main -I/svr-setup/redis-php7 -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/local/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /svr-setup/redis-php7/redis_array_impl.c  -fPIC -DPIC -o .libs/redis_array_impl.o
    ccache gcc -I. -I/svr-setup/redis-php7 -DPHP_ATOM_INC -I/svr-setup/redis-php7/include -I/svr-setup/redis-php7/main -I/svr-setup/redis-php7 -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/local/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /svr-setup/redis-php7/redis_cluster.c  -fPIC -DPIC -o .libs/redis_cluster.o
    ccache gcc -I. -I/svr-setup/redis-php7 -DPHP_ATOM_INC -I/svr-setup/redis-php7/include -I/svr-setup/redis-php7/main -I/svr-setup/redis-php7 -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/local/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /svr-setup/redis-php7/cluster_library.c  -fPIC -DPIC -o .libs/cluster_library.o
    /bin/sh /svr-setup/redis-php7/libtool --mode=link ccache gcc -DPHP_ATOM_INC -I/svr-setup/redis-php7/include -I/svr-setup/redis-php7/main -I/svr-setup/redis-php7 -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/local/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -o redis.la -export-dynamic -avoid-version -prefer-pic -module -rpath /svr-setup/redis-php7/modules  redis.lo redis_commands.lo library.lo redis_session.lo redis_array.lo redis_array_impl.lo redis_cluster.lo cluster_library.lo
    ccache gcc -shared  .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   -Wl,-soname -Wl,redis.so -o .libs/redis.so
    creating redis.la
    (cd .libs && rm -f redis.la && ln -s ../redis.la redis.la)
    /bin/sh /svr-setup/redis-php7/libtool --mode=install cp ./redis.la /svr-setup/redis-php7/modules
    cp ./.libs/redis.so /svr-setup/redis-php7/modules/redis.so
    cp ./.libs/redis.lai /svr-setup/redis-php7/modules/redis.la
    PATH="$PATH:/sbin" ldconfig -n /svr-setup/redis-php7/modules
    ----------------------------------------------------------------------
    Libraries have been installed in:
       /svr-setup/redis-php7/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'.
    
    Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20151012/
     
  11. rdan

    rdan Well-Known Member

    5,449
    1,410
    113
    May 25, 2014
    Ratings:
    +2,204
    Local Time:
    8:06 PM
    Mainline
    10.2
     
  12. eva2000

    eva2000 Administrator Staff Member

    55,182
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    10:06 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what if you delete /svr-setup/redis-php7 directory and retry
    Code (Text):
    rm -rf /svr-setup/redis-php7/*
     
  13. rdan

    rdan Well-Known Member

    5,449
    1,410
    113
    May 25, 2014
    Ratings:
    +2,204
    Local Time:
    8:06 PM
    Mainline
    10.2
    Same error Eva :(
     
  14. eva2000

    eva2000 Administrator Staff Member

    55,182
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    10:06 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what's output for command
    Code (Text):
    php-config

    i.e.
    Code (Text):
    php-config
    Usage: /usr/local/bin/php-config [OPTION]
    Options:
      --prefix            [/usr/local]
      --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]
      --ldflags           []
      --libs              [-lcrypt  -lc-client  -lz -lexslt -ltidy -lresolv -lcrypt -ledit -lncurses -laspell -lpspell -lrt -lmcrypt -lltdl -lstdc++ -lcrypt -lpam -lgmp -lX11 -lXpm -lpng -lz -ljpeg -lenchant -lcurl -lbz2 -lz -lrt -lm -ldl -lnsl  -lxml2 -lz -lm -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lcurl -lxml2 -lz -lm -ldl -lssl -lcrypto -lfreetype -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -ldl -lm -licui18n -licuuc -licudata -ldl -lm -licuio -lxml2 -lz -lm -ldl -lnetsnmp -lssl -lssl -lcrypto -lm -lxml2 -lz -lm -ldl -lcrypt -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxslt -lxml2 -lz -ldl -lm -lssl -lcrypto -lcrypt ]
      --extension-dir     [/usr/local/lib/php/extensions/no-debug-non-zts-20151012]
      --include-dir       [/usr/local/include/php]
      --man-dir           [/usr/local/php/man]
      --php-binary        [/usr/local/bin/php]
      --php-sapis         [ cli fpm phpdbg cgi]
      --configure-options [--enable-fpm --enable-opcache --enable-intl --enable-pcntl --with-mcrypt --with-snmp --with-mhash --with-zlib --with-gettext --enable-exif --enable-zip --with-bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --with-curl --with-gd --with-xmlrpc --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-vpx-dir=/usr --with-t1lib=/usr --enable-pdo --with-pdo-sqlite --with-pdo-mysql=mysqlnd --enable-inline-optimization --with-imap --with-imap-ssl --with-kerberos --with-readline --with-libedit --with-gmp --with-pspell --with-tidy --with-enchant --with-fpm-user=nginx --with-fpm-group=nginx --disable-fileinfo --with-config-file-scan-dir=/etc/centminmod/php.d --with-xsl CC=ccache CFLAGS=-O3 -m64 -mtune=native -mfpmath=sse CXX=ccache CXXFLAGS=-O3 -m64 -mtune=native -mfpmath=sse]
      --version           [7.0.7]
      --vernum            [70007]
     
  15. rdan

    rdan Well-Known Member

    5,449
    1,410
    113
    May 25, 2014
    Ratings:
    +2,204
    Local Time:
    8:06 PM
    Mainline
    10.2
    Code:
    Usage: /usr/local/bin/php-config [OPTION]
    Options:
      --prefix            [/usr/local]
      --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]
      --ldflags           []
      --libs              [-lcrypt  -lc-client  -lz -ltidy -lresolv -lcrypt -ledit -lncurses -laspell -lpspell -lrt -lmcrypt -lltdl -lcrypt -lpam -lgmp -lX11 -lXpm -lpng -lz -ljpeg -lenchant -lcurl -lbz2 -lz -lrt -lm -ldl -lnsl  -lxml2 -lz -lm -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lcurl -lxml2 -lz -lm -ldl -lfreetype -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lcrypt -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lssl -lcrypto -lcrypt ]
      --extension-dir     [/usr/local/lib/php/extensions/no-debug-non-zts-20151012]
      --include-dir       [/usr/local/include/php]
      --man-dir           [/usr/local/php/man]
      --php-binary        [/usr/local/bin/php]
      --php-sapis         [ cli fpm phpdbg cgi]
      --configure-options [--enable-fpm --enable-opcache --with-mcrypt --with-mhash --with-zlib --with-gettext --enable-exif --enable-zip --with-bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --with-curl --with-gd --with-xmlrpc --enable-bcmath --enable-calendar --enable-gd-native-ttf --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-vpx-dir=/usr --with-t1lib=/usr --enable-pdo --with-pdo-sqlite --with-pdo-mysql=mysqlnd --enable-inline-optimization --with-imap --with-imap-ssl --with-kerberos --with-readline --with-libedit --with-gmp --with-pspell --with-tidy --with-enchant --with-fpm-user=nginx --with-fpm-group=nginx --disable-fileinfo --with-config-file-scan-dir=/etc/centminmod/php.d CC=ccache CFLAGS=-O3 -m64 -mtune=native -mfpmath=sse CXX=ccache CXXFLAGS=-O3 -m64 -mtune=native -mfpmath=sse]
      --version           [7.0.7]
      --vernum            [70007]
    
     
  16. rdan

    rdan Well-Known Member

    5,449
    1,410
    113
    May 25, 2014
    Ratings:
    +2,204
    Local Time:
    8:06 PM
    Mainline
    10.2
  17. rdan

    rdan Well-Known Member

    5,449
    1,410
    113
    May 25, 2014
    Ratings:
    +2,204
    Local Time:
    8:06 PM
    Mainline
    10.2
    This variable is causing it:
     
  18. eva2000

    eva2000 Administrator Staff Member

    55,182
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    10:06 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    interesting so it is causing PHP 7 to be incorrect detected by redis php extension reinstall routines