Welcome to Centmin Mod Community
Become a Member

PHP 7.3.0 Upgrade - Extensions Issue

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by iaTa, Dec 21, 2018.

  1. iaTa

    iaTa Member

    32
    6
    8
    Mar 26, 2018
    Ratings:
    +6
    Local Time:
    6:40 PM
    • CentOS Version: CentOS 6 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.15.7
    • PHP Version Installed: 7.3.0
    • MariaDB MySQL Version Installed: 10.1.37
    • When was last time updated Centmin Mod code base ? : Today
    • Persistent Config:
      Code:
      NGXDYNAMIC_NGXPAGESPEED='y'
      NGINX_PAGESPEED='y'
      PHP_PGO='y'
      PHP_PGO_CENTOSSIX='y'
      LETSENCRYPT_DETECT='y'
      VHOSTCTRL_CLOUDFLAREINC='y'
      NGXDYNAMIC_BROTLI='y'
      NGINX_LIBBROTLI='y'
      NGINX_HPACK='y'
      NGINX_DYNAMICTLS='y'
      CLOUDFLARE_ZLIBPHP='y'
      CLOUDFLARE_PATCHSSL='y'
      OPENSSLECDSA_PATCH='y'
      OPENSSLECDHX_PATCH='y'
      MARCH_TARGETNATIVE='n'
      
    PHP Upgrade log: https://gist.github.com/1aTa/107d9a...3.09beta01.b078_201218-191413_php_upgrade.log

    PHP Extension errors:
    Code:
    PHP Warning:  PHP Startup: Unable to load dynamic library 'geoip.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20180731/geoip.so (/usr/local/lib/php/extensions/no-debug-non-zts-20180731/geoip.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20180731/geoip.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20180731/geoip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library 'igbinary.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20180731/igbinary.so (/usr/local/lib/php/extensions/no-debug-non-zts-20180731/igbinary.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20180731/igbinary.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20180731/igbinary.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library 'mailparse.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20180731/mailparse.so (/usr/local/lib/php/extensions/no-debug-non-zts-20180731/mailparse.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20180731/mailparse.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20180731/mailparse.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20180731/mcrypt.so (/usr/local/lib/php/extensions/no-debug-non-zts-20180731/mcrypt.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20180731/mcrypt.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20180731/mcrypt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20180731/memcached.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20180731/memcached.so (/usr/local/lib/php/extensions/no-debug-non-zts-20180731/memcached.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20180731//usr/local/lib/php/extensions/no-debug-non-zts-20180731/memcached.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20180731//usr/local/lib/php/extensions/no-debug-non-zts-20180731/memcached.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20180731/redis.so (/usr/local/lib/php/extensions/no-debug-non-zts-20180731/redis.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20180731/redis.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20180731/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    Noticed these errors in the log, not sure if this is the cause:
    Code:
    configure.ac:3: error: Autoconf version 2.68 or higher is required

     
  2. eva2000

    eva2000 Administrator Staff Member

    40,648
    9,029
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,902
    Local Time:
    3:40 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  3. iaTa

    iaTa Member

    32
    6
    8
    Mar 26, 2018
    Ratings:
    +6
    Local Time:
    6:40 PM
    I've removed mailparse.ini and memcache.ini but how do I fix the others?

    Menu option 10 did not fix the memcached error.
     
    style="display:inline-block;min-width:400px;max-width:970px;width:95%;height:90px" data-ad-client="ca-pub-6669518204467592" data-ad-slot="4024536743" data-ad-format="auto">
  4. eva2000

    eva2000 Administrator Staff Member

    40,648
    9,029
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,902
    Local Time:
    3:40 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    strange that should work

    might need your memcached centmin.sh menu option 10 log from /root/centminlogs posted to pasetbin.com or gist.github.com
    Code (Text):
    ls -lahrt /root/centminlogs | grep memcached | tail -1
    

    will print out the most recent memcached name log created after centmin.sh menu option 10 run..

    actually centmin.sh menu option 10 might reinstall memcache php extension which is incompatible with php 7.3.0 so would need manual removal of memcache.ini again (need to update 123.09beta01 to fix that)

    example output
    Code (Text):
    ls -lahrt /root/centminlogs | grep memcached | tail -1
    -rw-r--r--   1 root root  85K Dec 20 21:25 centminmod_123.09beta01.b078_201218-212254_memcached_reinstall.log
    

    Code (Text):
    cat /root/centminlogs/centminmod_123.09beta01.b078_201218-212254_memcached_reinstall.log
    

    then post that file's contents to pasetbin.com or gist.github.com
     
  5. iaTa

    iaTa Member

    32
    6
    8
    Mar 26, 2018
    Ratings:
    +6
    Local Time:
    6:40 PM
  6. eva2000

    eva2000 Administrator Staff Member

    40,648
    9,029
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,902
    Local Time:
    3:40 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    ah indeed centos 6 issue as autoconf version is lower than in centos 7 so that's why centos 7 doesn't have problems with php 7.3.0 and memcached.
    Code (Text):
    compiling memcached PHP extension for PHP 7.x ...
    PHPMUVER =
    /svr-setup /svr-setup
    Initialized empty Git repository in /svr-setup/memcached-php7/.git/
    
    real    0m1.250s
    user    0m0.157s
    sys    0m0.072s
    /svr-setup
    make: *** No rule to make target `clean'.  Stop.
    Configuring for:
    PHP Api Version:         20180731
    Zend Module Api No:      20180731
    Zend Extension Api No:   320180731
    configure.ac:3: error: Autoconf version 2.68 or higher is required
    configure.ac:3: the top level
    autom4te: /usr/bin/m4 failed with exit status: 63
    inc/memcached_install.inc: line 411: ./configure: No such file or directory
    

    Probably need to downgrade to PHP 7.2.13 for now if using memcached php extension actively until i fix the problem
     
  7. iaTa

    iaTa Member

    32
    6
    8
    Mar 26, 2018
    Ratings:
    +6
    Local Time:
    6:40 PM
    If I downgrade to 7.2.13 will it be able to compile all the other extensions such as geoip?
     
  8. eva2000

    eva2000 Administrator Staff Member

    40,648
    9,029
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,902
    Local Time:
    3:40 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    yes downgrades will recompile extensions such as geoip too

    but looks like centos 6 has autoconf268 package in EPEL repo available so you should be able to make memcached php extension + php 7.3.0 + centos 6 work
    Code (Text):
    yum -q list autoconf* | tr -s ' ' | column -t
    Installed           Packages
    autoconf.noarch     2.63-5.1.el6   @base
    Available           Packages
    autoconf213.noarch  2.13-20.1.el6  base
    autoconf268.noarch  2.68-2.el6     epel
    

    Code (Text):
    yum -y install autoconf268
    


    i created a patch you can try and apply using below commands
    Code (Text):
    cmupdate
    cmdir
    wget https://gist.github.com/centminmod/7f09562dc8e0efcd847b466e7cf7fdea/raw/php7-memcached.patch
    patch -p1 < php7-memcached.patch 
    ./centmin.sh
    

    to update 123.09beta01 code, change to /usr/local/src/centminmod directory, wget download patch file, apply the patch, run centmin.sh and then select menu option 10

    let me know if that works
     
  9. iaTa

    iaTa Member

    32
    6
    8
    Mar 26, 2018
    Ratings:
    +6
    Local Time:
    6:40 PM
    I actually just downgraded to 7.2.13.

    Should I install autoconf268 and then run the 7.3.0 upgrade or try the patch first?
     
  10. eva2000

    eva2000 Administrator Staff Member

    40,648
    9,029
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,902
    Local Time:
    3:40 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    my patch auto detects if centos 6 is used and auto installs autoconf268 package - so just run the patch instructions to test if that works
     
  11. iaTa

    iaTa Member

    32
    6
    8
    Mar 26, 2018
    Ratings:
    +6
    Local Time:
    6:40 PM
    Code:
    patch -p1 < php7-memcached.patch
    patching file centmin.sh
    Reversed (or previously applied) patch detected!  Assume -R? [n]
    Apply anyway? [n] y
    Hunk #1 FAILED at 26.
    Hunk #2 FAILED at 2074.
    2 out of 2 hunks FAILED -- saving rejects to file centmin.sh.rej
    patching file inc/memcached_install.inc
    Hunk #1 succeeded at 317 (offset 42 lines).
    Hunk #2 FAILED at 393.
    1 out of 2 hunks FAILED -- saving rejects to file inc/memcached_install.inc.rej
    patching file inc/php_upgrade.inc
    
     
  12. eva2000

    eva2000 Administrator Staff Member

    40,648
    9,029
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,902
    Local Time:
    3:40 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    oh i actually committed the patch to 123.09beta01 updates so cmupate would of been enough to update you then run centmin.sh menu option 5 to recompile PHP 7.3.0
     
  13. iaTa

    iaTa Member

    32
    6
    8
    Mar 26, 2018
    Ratings:
    +6
    Local Time:
    6:40 PM
    Upgrade to 7.3.0 went perfectly along with previous extensions.

    Thank you for fixing!
     
    • Like Like x 1
  14. eva2000

    eva2000 Administrator Staff Member

    40,648
    9,029
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,902
    Local Time:
    3:40 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    excellent thanks for the bug report - one step closer to stable :D
     
    • Like Like x 1