Learn about Centmin Mod LEMP Stack today
Become a Member

PHP 8.5.0, 8.4.15, 8.3.28 Released

Discussion in 'Centmin Mod News' started by eva2000, Nov 23, 2025.

Thread Status:
Not open for further replies.
  1. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:02 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    PHP 8.5.0 GA release is out now along with PHP 8.4.15 and 8.3.28 bug fix releases. For PHP 8.5.0 migration notes, deprecated features and changes read PHP: Migrating from PHP 8.4.x to PHP 8.5.x - Manual. And read what's new in PHP 8.5 here.
    • PHP 8.5.0 is only supported in Centmin Mod 140.00beta01 or newer. You will need to run cmupdate command on 140.00beta01, to get latest updates and then run centmin.sh menu option 5 and specifying PHP 8.5.0 version for updates. If you're on Centmin Mod 132.00stable, max supported PHP version is PHP 8.3.x.
    • While Centmin Mod 140.00beta01 or newer has PHP 8.4.x and PHP 8.5.x support.
    Releases
    Change Logs
    Example on AlmaLinux 9.7
    Code (Text):
    --------------------------------------------------------
         Centmin Mod Menu 141.00beta01 centminmod.com    
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  MySQL User Database Management
    7).  Persistent Config File Management
    8).  Option Being Revised (TBA)
    9).  Option Being Revised (TBA)
    10). Memcached Server Re-install
    11). MariaDB MySQL Upgrade & Management
    12). Zend OpCache Install/Re-install
    13). Install/Reinstall Redis PHP Extension
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: zstd,pigz,pbzip2,lbzip2
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Install/Re-Install
    21). Data Transfer
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 5
    --------------------------------------------------------
    

    Code (Text):
    PHP Upgrade/Downgrade - Would you like to continue? [y/n] y
    
    ----------------------------------------------------------------
    Install which version of PHP? (i.e. 7.3.33, 7.4.33, 8.0.30, 8.1.33, 8.2.29, 8.3.28, 8.4.15, 8.5.0, NGDEBUG)
    PHP 7.x/7.1.x/7.2.x/7.3.x is GA Stable but still may have broken PHP extensions.
    NGDEBUG is PHP 8.5 dev builds minus incompatible PHP extensions
    ----------------------------------------------------------------
    
    Current PHP Version: 8.4.15
    Latest PHP Version Installable: 8.5.0, 8.4.15, 8.3.28, 8.2.29, 8.1.33, 8.0.30
    
    Enter PHP Version number you want to upgrade/downgrade to: 8.5.0
    
    Do you still want to continue? [y/n] y
    
    ----------------------------------------------------------------
    existing php.ini will be backed up at /usr/local/lib/php.ini-oldversion_231125-001657
    ----------------------------------------------------------------
    
    -----------------------------------------------------------------------------------------
    Detected PHP 8.5 branch.
    You can compile Zend OPcache (Zend Optimizer Plus+) support
    as an alternative to using APC Cache or Xcache cache.
    But Zend OPcache only provides PHP opcode cache and
    DOESN'T do data caching, so if your web apps such as Wordpress,
    Drupal or vBulletin require data caching to APC or Xcache,
    it won't work with Zend OPcache.
    
    -----------------------------------------------------------------------------------------
    Do you want to use Zend OPcache [y/n] ? y

    Code (Text):
    php -v
    PHP 8.5.0 (cli) (built: Nov 22 2025 14:11:58) (NTS)
    Copyright (c) The PHP Group
    Zend Engine v4.5.0, Copyright (c) Zend Technologies
        with Zend OPcache v8.5.0, Copyright (c), by Zend Technologies
    

    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           [ -Wl,-z,relro,-z,now -pie -Wl,-rpath,/opt/remi/libzip/lib64 -L/usr/lib64/../lib64 -L/usr/local/libgd/2.3.3/lib -L/usr/local/lib64 -L/opt/remi/libzip/lib64]
      --libs              [  -ltidy -lncurses -lstdc++ -lbz2 -lm  -lxml2 -lssl -lcrypto -lsqlite3 -lz -lcurl -lxml2 -lenchant -lgmodule-2.0 -lglib-2.0 -lffi -lssl -lcrypto -lgd -lgmp -licuio -licui18n -licuuc -licudata -lldap -llber -lsasl2 -lonig -lsqlite3 -ledit -lxml2 -lnetsnmp -lxml2 -lsodium -largon2 -lxml2 -lxml2 -lxml2 -lxslt -lxml2 -lexslt -lxslt -lxml2 -lzip -lz -lssl -lcrypto]
      --extension-dir     [/usr/local/lib/php/extensions/no-debug-non-zts-20250925]
      --include-dir       [/usr/local/include/php]
      --lib-dir           [/usr/local/lib]
      --lib-embed         [libphp.so]
      --man-dir           [/usr/local/php/man]
      --php-binary        [/usr/local/bin/php]
      --php-sapis         [ cli embed fpm phpdbg cgi]
      --ini-path          [/usr/local/lib]
      --ini-dir           [/etc/centminmod/php.d]
      --configure-options [--enable-fpm --enable-intl --enable-pcntl --with-mcrypt --with-snmp --enable-embed=shared --with-mhash --with-zlib --with-gettext --enable-exif --with-zip --with-bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-mysql-sock=/var/lib/mysql/mysql.sock --with-curl --enable-gd --with-external-gd --with-avif --with-xmlrpc --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --with-freetype --with-jpeg --with-png-dir=/usr --with-xpm --with-webp --with-t1lib=/usr --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --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 --with-ldap --with-ldap-sasl --with-pic --with-config-file-scan-dir=/etc/centminmod/php.d --with-fpm-systemd --with-ffi --with-libzip=/opt/remi/libzip/lib64 --with-password-argon2 --with-sodium=/usr/local --with-xsl PKG_CONFIG_PATH=/opt/remi/libzip/lib64/pkgconfig:/usr/local/lib64/pkgconfig: PNG_CFLAGS=-I/usr/include PNG_LIBS=-L/usr/lib64 -lpng16 GDLIB_CFLAGS=-I/usr/local/libgd/2.3.3/include GDLIB_LIBS=-L/usr/local/libgd/2.3.3/lib -lgd ICU_CFLAGS=-fPIC ICU_LIBS=-L/usr/lib64 -licuio -licui18n -licuuc -licudata ONIG_CFLAGS=-I/usr/include ONIG_LIBS=-L/usr/lib64 -lonig LIBSODIUM_CFLAGS=-fPIC LIBSODIUM_LIBS=-L/usr/local/lib64 -lsodium ARGON2_CFLAGS=-I/usr/local/include ARGON2_LIBS=-L/usr/local/lib64 -largon2 LIBZIP_CFLAGS=-I/opt/remi/libzip/include -fPIC LIBZIP_LIBS=-L/opt/remi/libzip/lib64 -lzip]
      --version           [8.5.0]
      --vernum            [80500]
    

    Code (Text):
    php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    exif
    FFI
    fileinfo
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    igbinary
    imagick
    intl
    json
    ldap
    lexbor
    libxml
    mailparse
    mbstring
    mcrypt
    memcache
    memcached
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    random
    readline
    redis
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    sodium
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    timezonedb
    tokenizer
    uri
    xml
    xmlreader
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
    


    Note for PHP 8.5, the Opcache extension is now always built into the PHP binary and is always loaded. The INI directives opcache.enable and opcache.enable_cli are still honored but you no longer require zend_extension variable to load opcache.so so Centmin Mod automatically comments it out to disable it with semi-colon in front in /etc/centminmod/php.d/zendopcache.ini
    Code (Text):
    ;zend_extension=opcache.so
    ;opcache.error_log=/var/log/php_opcache_error.log
    opcache.enable=1
    opcache.memory_consumption=80
    opcache.interned_strings_buffer=64
    opcache.max_wasted_percentage=5
    opcache.max_accelerated_files=65407
    ; http://php.net/manual/en/opcache.configuration.php#ini.opcache.revalidate-freq
    ; defaults to zend opcache checking every 180 seconds for PHP file changes
    ; set to zero to check every second if you are doing alot of frequent
    ; php file edits/developer work
    ; opcache.revalidate_freq=0
    opcache.revalidate_freq=180
    opcache.fast_shutdown=0
    opcache.enable_cli=0
    opcache.save_comments=1
    opcache.enable_file_override=1
    opcache.validate_timestamps=1
    ;opcache.huge_code_pages=1
    


    Interesting PHP 8.5 has a new setting for --ini=diff that can print out non-default PHP ini settings :)
    Code (Text):
    php --ini=diff
    Non-default INI settings:
    allow_url_include: "0" -> ""
    auto_append_file: (none) -> ""
    auto_prepend_file: (none) -> ""
    curl.cainfo: "" -> "/etc/ssl/certs/cacert.pem"
    display_errors: "1" -> ""
    display_startup_errors: "1" -> ""
    enable_dl: "1" -> ""
    error_reporting: (none) -> "22527"
    expose_php: "1" -> ""
    geoip.custom_directory: (none) -> "/usr/share/GeoIP"
    html_errors: "1" -> "0"
    ignore_repeated_errors: "0" -> ""
    ignore_repeated_source: "0" -> ""
    implicit_flush: "0" -> "1"
    log_errors: "0" -> "1"
    mail.add_x_header: "0" -> ""
    mail.mixed_lf_and_crlf: "0" -> ""
    max_execution_time: "30" -> "0"
    max_input_nesting_level: "64" -> "128"
    max_input_vars: "1000" -> "10000"
    memcached.sess_connect_timeout: "0" -> "3000"
    memcached.sess_consistent_hash: "1" -> "0"
    memory_limit: "128M" -> "800M"
    mysqli.default_host: (none) -> ""
    mysqli.default_pw: (none) -> ""
    mysqli.default_user: (none) -> ""
    mysqlnd.collect_memory_statistics: "0" -> ""
    mysqlnd.net_cmd_buffer_size: "4096" -> "16384"
    opcache.enable_file_override: "0" -> "1"
    opcache.interned_strings_buffer: "8" -> "64"
    opcache.max_accelerated_files: "10000" -> "65407"
    opcache.memory_consumption: "128" -> "480"
    opcache.revalidate_freq: "2" -> "180"
    post_max_size: "8M" -> "800M"
    realpath_cache_size: "4096K" -> "4096k"
    realpath_cache_ttl: "120" -> "43200"
    request_order: (none) -> "GP"
    session.cookie_httponly: "0" -> ""
    session.gc_divisor: "100" -> "1000"
    tidy.clean_output: "0" -> ""
    unserialize_callback_func: (none) -> ""
    upload_max_filesize: "2M" -> "800M"
    user_dir: (none) -> ""
    variables_order: "EGPCS" -> "GPCS"
    zend.assertions: "1" -> "-1"
    zend.exception_ignore_args: "0" -> "1"
    zend.exception_string_param_max_len: "15" -> "0"
    zlib.output_compression: "0" -> ""
    


     
Thread Status:
Not open for further replies.