Discover Centmin Mod today
Register Now

Beta Branch fix PHP compile for curl, libzip update & argon2 for EL8/EL9 in 140.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Oct 16, 2024.

  1. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    1:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    fix PHP compile for curl, libzip update & argon2 for EL8/EL9 in 140.00beta01


    - additional fixes for php-fpm compile to account for folks installing custom curl versions that may conflict with system curl. For such folks, then can optionally set ENSURE_SYSTEM_PHP_CURL_USED='y' in the persistent config file /etc/centminmod/custom_config.inc (create it if it doesn't exist) which will ensure system curl is used. For now defaults to disabled ENSURE_SYSTEM_PHP_CURL_USED='n' so php-fpm compiles work as are now as Centmin Mod does not install custom curl version outside of system curl paths by default.
    - recent update for libzip using REMI YUM repo's version for EL8/EL9 systems broken PHP argon2 and libsodium support. This update fixes it.
    - these updates and fixes only applicable to 140.00beta01 and EL8/EL9 OSes as 140.00beta01 changed how libzip was installed and not applicable to 131.00stable branch
    - existing 140.00beta01 users on AlmaLinux/Rocky Linux 8/9 can run cmupdate command and just recompile PHP via centmin.sh menu option 5 to fix it. Verify if argon2 is supported in PHP via command below:

    Code (Text):
    php -r 'print_r(get_defined_constants());' | grep -i argon


    example output

    Code (Text):
    php -r 'print_r(get_defined_constants());' | grep -i argon
        [PASSWORD_ARGON2I] => argon2i
        [PASSWORD_ARGON2ID] => argon2id
        [PASSWORD_ARGON2_DEFAULT_MEMORY_COST] => 65536
        [PASSWORD_ARGON2_DEFAULT_TIME_COST] => 4
        [PASSWORD_ARGON2_DEFAULT_THREADS] => 1
        [PASSWORD_ARGON2_PROVIDER] => standard
        [SODIUM_CRYPTO_PWHASH_ALG_ARGON2I13] => 1
        [SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13] => 2
        [SODIUM_CRYPTO_PWHASH_STRPREFIX] => $argon2id$


    Continue reading...

    140.00beta01 branch