Learn about Centmin Mod LEMP Stack today
Become a Member

Beta Branch update igbinary php 7 routine

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jan 14, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    29,051
    6,591
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,786
    Local Time:
    9:04 AM
    Nginx 1.13.x
    MariaDB 5.5
  2. eva2000

    eva2000 Administrator Staff Member

    29,051
    6,591
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,786
    Local Time:
    9:04 AM
    Nginx 1.13.x
    MariaDB 5.5
    before
    Code (Text):
    php --ri igbinary
    
    igbinary
    
    igbinary support => enabled
    igbinary version => 1.2.2-dev
    igbinary APC serializer ABI => no
    igbinary session support => no
    
    Directive => Local Value => Master Value
    igbinary.compact_strings => On => On
    

    find igbinary.ini settings file with command php --ini which shows /etc/centminmod/php.d/igbinary.ini
    Code (Text):
    php --ini
    Configuration File (php.ini) Path: /usr/local/lib
    Loaded Configuration File:         /usr/local/lib/php.ini
    Scan for additional .ini files in: /etc/centminmod/php.d
    Additional .ini files parsed:      /etc/centminmod/php.d/a_customphp.ini,
    /etc/centminmod/php.d/curlcainfo.ini,
    /etc/centminmod/php.d/geoip.ini,
    /etc/centminmod/php.d/igbinary.ini,
    /etc/centminmod/php.d/imagick.ini,
    /etc/centminmod/php.d/mailparse.ini,
    /etc/centminmod/php.d/memcache.ini,
    /etc/centminmod/php.d/memcached.ini,
    /etc/centminmod/php.d/redis.ini,
    /etc/centminmod/php.d/zendopcache.ini,
    /etc/centminmod/php.d/zzendopcache.ini
    

    contents of /etc/centminmod/php.d/igbinary.ini
    Code (Text):
    cat /etc/centminmod/php.d/igbinary.ini
    

    Code (Text):
    [igbinary]
    extension=igbinary.so
    ;Use igbinary as session serializer
    ;session.serialize_handler=igbinary
    
    ;Enable or disable compacting of duplicate strings
    igbinary.compact_strings=On
    
    ;Use igbinary as serializer in APC cache
    ;apc.serializer=igbinary
    

    find php extension directory using php-config so located at /usr/local/lib/php/extensions/no-debug-non-zts-20151012
    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 -lldap -llber -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-ldap --with-ldap-sasl --with-config-file-scan-dir=/etc/centminmod/php.d --with-xsl]
      --version           [7.0.14]
      --vernum            [70014]
    

    Code (Text):
    ls -lah /usr/local/lib/php/extensions/no-debug-non-zts-20151012
    total 5.0M
    drwxr-xr-x  2 root root 4.0K Jan 14 00:40 .
    drwxr-xr-x. 5 root root 4.0K Dec  2 09:02 ..
    -rwxr-xr-x  1 root root  82K Dec  9 13:44 geoip.so
    -rwxr-xr-x  1 root root 352K Dec  9 13:43 igbinary.so
    -rwxr-xr-x  1 root root 1.2M Jan 12 23:42 imagick.so
    -rwxr-xr-x  1 root root 227K Dec  9 13:43 mailparse.so
    -rwxr-xr-x  1 root root 382K Jan 14 00:40 memcached.so
    -rwxr-xr-x  1 root root 498K Jan 14 00:39 memcache.so
    -rwxr-xr-x  1 root root 442K Dec  9 13:42 opcache.a
    -rwxr-xr-x  1 root root 274K Dec  9 13:42 opcache.so
    -rwxr-xr-x  1 root root 1.6M Dec  9 13:43 redis.so
    


    To update igbinary, you can force a recompile via centmin.sh menu option 5 if you delete the igbinary.so from extension directory first before running centmin.sh menu option 5
    Code (Text):
    rm -rf /usr/local/lib/php/extensions/no-debug-non-zts-20151012/igbinary.so
    


    after re-running centmin.sh menu option 5
    Code (Text):
    php --ri igbinary
    
    igbinary
    
    igbinary support => enabled
    igbinary version => 2.0.1
    igbinary APC serializer ABI => no
    igbinary session support => yes
    
    Directive => Local Value => Master Value
    igbinary.compact_strings => On => On
    
     
    • Like Like x 2