Get the most out of your Centmin Mod LEMP stack
Become a Member

[Solved] PHP 7.4.2 and missing zlib extensions

Discussion in 'Bug Reports' started by tininho, Feb 4, 2020.

  1. tininho

    tininho Member

    81
    24
    8
    May 22, 2019
    Nordic
    Ratings:
    +56
    Local Time:
    3:34 AM
    I've updated to PHP 7.4.2 and while running a WP All import job I ran into the following error:

    Code:
    Abort pclzip.lib.php : Missing zlib extensions
    
    Latest Centminmod beta as of today.
     
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    44,111
    10,046
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,529
    Local Time:
    10:34 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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.

    To troubleshoot, you need to check the the php upgrade logs at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the nginx_upgrade and php_upgrade logs. You can see full details at How to troubleshoot Centmin Mod initial install issues

    if you type this command it lists all logs in date ascending order so latest log at bottom
    Code (Text):
    ls -lArt /root/centminlogs

    so copy the entire contents of latest php_upgrade log to gist.github.com or pastebin.com

    you can use grep to filter the logs, i.e. look for nginx_upgrade or php in log name
    Code (Text):
    ls -lahrt /root/centminlogs/ | egrep 'nginx_upgrade|php_upgrade'
    

    Code (Text):
    ls -lahrt /root/centminlogs/ | egrep 'nginx_upgrade|php_upgrade'
    -rw-r--r--  1 root root  2.6M Oct  3 03:48 centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log
    -rw-r--r--  1 root root  664K Oct 12 09:24 centminmod_1.2.3-eva2000.09.001_121016-092406_nginx_upgrade.log
    

    So the last php upgrade log was named centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log and located at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log
    then use cat command to output the contents of that log.

    clear your ssh window buffer/screen and type
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log

    then select and copy and paste output to pastebin.com or gist.github.com file to share. If your SSH client's scroll buffer isn't large enough using cat might not output the entire log file contents, so you may need to download the log and use local text editor to open and copy and paste.

    so only need content of a specific log, in this case most recent php_upgrade.log logs
     
  3. tininho

    tininho Member

    81
    24
    8
    May 22, 2019
    Nordic
    Ratings:
    +56
    Local Time:
    3:34 AM
    I noticed you mentioned that the following line in custom_config can be buggy:
    Code:
    CLOUDFLARE_ZLIBPHP='y'
    So I removed it and rebuild PHP 7.4.2. Now it works, so no error messages.

    Then again, I forgot I had added that line because when compiling PHP with GCC 9 without that line leads to:
    Code:
    PHP compiled with CPU_MARCH=bdver4
    This is Ryzen 3700x, so it should be zen2, and when
    Code:
    CLOUDFLARE_ZLIBPHP='y'
    then
    Code:
    PHP compiled with CPU_MARCH=zen2
    Full custom_config: tinof/centmininit
     
    • Like Like x 1
  4. eva2000

    eva2000 Administrator Staff Member

    44,111
    10,046
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,529
    Local Time:
    10:34 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    ah that is the problem then. Use CLOUDFLARE_ZLIBPHP='n' which is default already

    probably time to disable CLOUDFLARE_ZLIBPHP='y' due to it being buggy
     
    • Like Like x 1