Welcome to Centmin Mod Community
Register Now

Upgrade PHP-FPM PHP 8.1.0 upgrade fails - libargon2

Discussion in 'Install & Upgrades or Pre-Install Questions' started by duderuud, Nov 26, 2021.

  1. duderuud

    duderuud Member

    46
    13
    8
    Dec 5, 2020
    The Netherlands
    Ratings:
    +31
    Local Time:
    12:06 PM
    Nginx 1.21.4
    MariaDB 10.4
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.21.4
    • PHP Version Installed: 8.0.13
    • MariaDB MySQL Version Installed: 10.4.22
    • When was last time updated Centmin Mod code base ? : just before php upgrade
    • Persistent Config:
    Code:
    WPPLUGINS_ALL='n'
    VHOSTCTRL_CLOUDFLAREINC='y'
    ENABLEMOTD_CSFMSG='n' # motd banner csf message alert disaply
    ENABLEMOTD_LINKSMSG='n' # motd centminmod.com links bookmark alert display
    DISABLE_IPVSIX='y'
    AUTOTUNE_CLIENTMAXBODY='y'
    ## FOR PHP 7.4+
    FPM_WAKEUP_PATCH='y'
    AUTODETECPHP_OVERRIDE='y'
    ##For Linux Kernel > 5.1.x
    #NGINX_IOURING_PATCH_BETA='y'
    ##Upgrading NGINX. Disable, if custom configs
    NGINX_ALLOWOVERRIDE='y'
    #NGINX_FATLTO_OBJECTS='n' # enable -ffat-lto-objects flag for nginx builds - much slower compile times
    #NGINX_NOFATLTO_OBJECTS='n' # enable -fno-fat-lto-objects flag for nginx builds - much slower compile times
    NGINX_DYNAMICTLS='y'
    NGINX_SSLCACHE_ALLOWOVERRIDE='y'
    NGXDYNAMIC_BROTLI='y'
    NGINX_LIBBROTLI='y'
    AUTOHARDTUNE_NGINXBACKLOG='y'
    MARIADB_INSTALLTENFOUR='y'
    SET_DEFAULT_MYSQLCHARSET='utf8mb4'
    LETSENCRYPT_DETECT='n'
    DUALCERTS='y'
    NGINX_HPACK='y'
    GCC_FALIGN_FUNCTION='y'
    LIBRESSL_SWITCH='n'
    CLANG='n'
    DEVTOOLSETSIX='n'
    DEVTOOLSETSEVEN='n'
    DEVTOOLSETEIGHT='n'
    DEVTOOLSETNINE='y'
    NGINX_DEVTOOLSETGCC='y'
    GENERAL_DEVTOOLSETGCC='y'
    CRYPTO_DEVTOOLSETGCC='y'
    CUSTOM_CURLRPM='y'
    CUSTOM_CURLRPMVER='7.69.0' # custom curl/libcurl version
    PHP_PGO='y'
    PHP_PGO_ALWAYS='y'
    #PHPPGO_INDEXPATH='/home/nginx/domains/XX/public/index.php'
    #PHPPGO_INDEXPATH_TWO='/home/nginx/domains/XX/public/index.php'
    PHP_TUNING='y'
    PHP_BROTLI='y'
    PHP_LZFOUR='y'
    PHP_LZF='y'
    PHP_ZSTD='y'
    ZSTD_LOGROTATE_NGINX='y'
    ZSTD_LOGROTATE_PHPFPM='y'
    PHP_MEMCACHE='y'
    PHP_MEMCACHED='y'
    MEMCACHED_INSTALL='y'
    MEMCACHED_DISABLED='n'
    NSD_INSTALL='n'
    NSD_DISABLED='y'
    MARCH_TARGETNATIVE_ALWAYS='y'
    PHPFINFO='y'
    #WP_FASTCGI_CACHE='y'
    LETSENCRYPT_DETECT='y'
    #NGINX_ZERODT='y'
    PHP_UPDATEMAINTENANCE='y'
    MARIADB_UPDATEMAINTENANCE='y'
    SSL_PROTOCOL_MODERN='y'
    NGINX_MODSECURITY_MAXMIND='y'
    NGINX_MODSECURITY='y'
    WPCLI_CE_QUERYSTRING_INCLUDED='y'
    NGINX_STAPLE_CACHE_OVERRIDE='y'
    NGINX_STAPLE_CACHE_TTL='86400'
    
    Tried to upgrade PHP 8.0.13 to 8.1.0. on my staging machine (NAS VM).

    Upgrading seems to work but fails on make:
    Code:
    make prof-clean
    make: *** No rule to make target `prof-clean'.  Stop.
    
    Full upgrade log can be found here: https://pastebin.com/pDt3BZ1e (password: FFZMi5exMe)

     
  2. eva2000

    eva2000 Administrator Staff Member

    47,843
    10,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,957
    Local Time:
    9:06 PM
    Nginx 1.21.x
    MariaDB 10.x
    seems PHP 8.1.0 isn't finding where libargon2 is
    Code (Text):
    checking for Argon2 support... yes
    checking for libargon2... no
    configure: error: Package requirements (libargon2) were not met:
    
    No package 'libargon2' found
    
    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.
    
    Alternatively, you may set the environment variables ARGON2_CFLAGS
    and ARGON2_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.
    
    Thu Nov 25 22:59:11 UTC 2021
    

    what's output for these 2 commands
    Code (Text):
    updatedb
    locate libargon2.so
    
     
  3. duderuud

    duderuud Member

    46
    13
    8
    Dec 5, 2020
    The Netherlands
    Ratings:
    +31
    Local Time:
    12:06 PM
    Nginx 1.21.4
    MariaDB 10.4
    Code:
    # locate libargon2.so
    /svr-setup/phc-winner-argon2-20171227/libargon2.so.1
    /usr/local/lib64/libargon2.so
    /usr/local/lib64/libargon2.so.1
    
     
  4. eva2000

    eva2000 Administrator Staff Member

    47,843
    10,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,957
    Local Time:
    9:06 PM
    Nginx 1.21.x
    MariaDB 10.x
  5. duderuud

    duderuud Member

    46
    13
    8
    Dec 5, 2020
    The Netherlands
    Ratings:
    +31
    Local Time:
    12:06 PM
    Nginx 1.21.4
    MariaDB 10.4
    And as always, you did your magic, it now works!

    I am running my staging server on a recent and pretty beefy Synology NAS with 5 bays and 2 SSD cache disks but still:
    Code:
    Total PHP Upgrade Time: 3569.183464810 seconds
    :eek::eek:
     
  6. eva2000

    eva2000 Administrator Staff Member

    47,843
    10,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,957
    Local Time:
    9:06 PM
    Nginx 1.21.x
    MariaDB 10.x
    Glad to hear, though given the time to compile, Synology NAS isn't that beefy cpu/cpu thread wise heh. But PHP with PGO enabled will take at least twice as long as default non-PGO installs as PGO needs to compile twice - first time with PGO training and then the second time to finalise it.
     
  7. duderuud

    duderuud Member

    46
    13
    8
    Dec 5, 2020
    The Netherlands
    Ratings:
    +31
    Local Time:
    12:06 PM
    Nginx 1.21.4
    MariaDB 10.4
    Yeah, the NAS has a simple Intel Celeron J4125 :(

    But hey, it's cheaper compared to the VPS I rented before...