Welcome to Centmin Mod Community
Register Now

PHP-FPM Unable to upgrade PHP to 7.4.11

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Razib Hasan, Oct 2, 2020.

  1. Razib Hasan

    Razib Hasan Member

    37
    15
    8
    May 31, 2014
    Dhaka, Bangladesh
    Ratings:
    +15
    Local Time:
    3:16 AM
    1.7.6
    5.10
    Please fill in any relevant information that applies to you:
    • CentOS Version: i.e. CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.19.3
    • PHP Version Installed: 7.4.10
    • MariaDB MySQL Version Installed: 10.1.46
    • When was last time updated Centmin Mod code base ? : just a few minutes ago before posting this thread
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:
      Code (Text):
      NGINX_UPDATEMAINTENANCE='n'
      PHP_UPDATEMAINTENANCE='n'
      MARIADB_UPDATEMAINTENANCE='n'
      NSD_INSTALL='n'              # Install NSD (DNS Server)
      NGINX_HTTP2='y'              # Nginx http/2 patch https://community.centminmod.com/threads/4127/
      NGXDYNAMIC_BROTLI='y'
      NGINX_LIBBROTLI='y'
      LETSENCRYPT_DETECT='y'
      NSD_DISABLED='y'              # when set to ='y'NSD disabled by default with chkconfig off
      MEMCACHED_DISABLED='n'        # when set to ='y' Memcached server disabled by default via chkconfig off
      PHP_DISABLED='n'              # when set to ='y' PHP-FPM disabled by default with chkconfig off
      MYSQLSERVICE_DISABLED='n'     # when set to ='y' MariaDB MySQL service disabled by default with chkconfig off
      PUREFTPD_DISABLED='y'         # when set to ='y'Pure-ftpd service disabled by default with chkconfig off
      MARCH_TARGETNATIVE='n'
      PHP_BROTLI='y' # brotli php extension https://github.com/kjdev/php-ext-brotli
      PHP_LZFOUR='y' # lz4 php extension https://github.com/kjdev/php-ext-lz4
      PHP_LZF='y' # lzf php extension https://github.com/php/pecl-file_formats-lzf php-ext-lzf
      PHP_ZSTD='y' # zstd php extension https://github.com/kjdev/php-ext-zstd
      DEVTOOLSETEIGHT='n'
      DEVTOOLSETNINE='y'
      

    Error log below;
    Code (Text):
         ____   _   _  ____       _   _                                _       
        |  _ \ | | | ||  _ \  _  | | | | _ __    __ _  _ __  __ _   __| |  ___ 
        | |_) || |_| || |_) |(_) | | | || '_ \  / _` || '__|/ _` | / _` | / _ \
        |  __/ |  _  ||  __/  _  | |_| || |_) || (_| || |  | (_| || (_| ||  __/
        |_|    |_| |_||_|    (_)  \___/ | .__/  \__, ||_|   \__,_| \__,_| \___|
                                        |_|     |___/                         
    
    PHP Upgrade/Downgrade - Would you like to continue? [y/n] y
    
    ----------------------------------------------------------------
    Install which version of PHP? (version i.e. 5.6.40, 7.0.33, 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.0 dev builds minus incompatible PHP extensions
    ----------------------------------------------------------------
    
    Current PHP Version: 7.4.10
    
    Enter PHP Version number you want to upgrade/downgrade to: 7.4.11
    
    Do you still want to continue? [y/n] y
    
    ----------------------------------------------------------------
    existing php.ini will be backed up at /usr/local/lib/php.ini-oldversion_021020-152418
    Want to update to latest php.conf & php-fpm.conf ? (overwrites will auto backup existing files)
    existing php.conf will be backed up to /usr/local/nginx/conf/php.conf-oldversion_021020-152418
    existing php-fpm.conf will be backed up to /usr/local/etc/php-fpm.conf-oldversion_021020-152418
    ----------------------------------------------------------------
    Update & overwrite your existing php.conf & php-fpm.conf [y/n]: n
    ----------------------------------------------------------------
    
    -----------------------------------------------------------------------------------------
    [1;33;40mDetected PHP 7.4 branch.
    (B[mYou 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
    
    *************************************************
    [1;32;40m* Zend Optimizer Plus OPcache configured
    (B[m*************************************************
    *************************************************
    [1;32;40m* Upgrading PHP
    (B[m*************************************************
     ____   _   _  ____       ____                          _                    _ 
    |  _ \ | | | ||  _ \  _  |  _ \   ___ __      __ _ __  | |  ___    __ _   __| |
    | |_) || |_| || |_) |(_) | | | | / _ \\ \ /\ / /| '_ \ | | / _ \  / _` | / _` |
    |  __/ |  _  ||  __/  _  | |_| || (_) |\ V  V / | | | || || (_) || (_| || (_| |
    |_|    |_| |_||_|    (_) |____/  \___/  \_/\_/  |_| |_||_| \___/  \__,_| \__,_|
                                                                                   
    HTTP/1.1 200 OK
    [1;32;40mphp 7.4.11 Archive found, skipping download...
    (B[mxz: (stdin): Compressed data is corrupt
    tar: Skipping to next header
    tar: Child returned status 1
    tar: Error is not recoverable: exiting now
    [1;32;40mError: php-7.4.11.tar.xz extraction failed.
    (B[m 
    [1;33;40m----------------------------------------------------------------------------------
    (B[mcheck Centmin Mod log for details at /root/centminlogs/
    Aborting script...
    [1;33;40m----------------------------------------------------------------------------------
    (B[m
    Total PHP Upgrade Time: 266.402905661 seconds
    


     
  2. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    5:16 AM
    Mainline
    10.2
    Clear /svr-setup/* dir.
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,647
    12,230
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,799
    Local Time:
    7:16 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    just remove /svr-setup/php-7.4.11.tar.xz and directory /svr-setup/php-7.4.11 as your download was corrupted
    Code (Text):
    cd /svr-setup
    rm -rf /svr-setup/php-7.4.11*
    
     
  4. fly

    fly Member

    109
    16
    18
    Jul 27, 2019
    Ratings:
    +28
    Local Time:
    4:16 PM
    I hate to chain on to this question, but should we be upgrading to PHP 7.4? It seems you would have said something if we shouldn't, but the centmin upgrade script mentions 7.3 as the most recent version.

    That said, I've done it and things seem fine, but wanted to confirm.
     
  5. pamamolf

    pamamolf Premium Member Premium Member

    4,084
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    11:16 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    If your software/platform/addons support it then yes as it is faster and it is also stable.

    Yes as you are already on 7.3.x and the script reports the latest version of 7.3.x.

    If you install the latest php 7.4.11 then the script will check for the latest version of the 7.4.x
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,647
    12,230
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,799
    Local Time:
    7:16 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yup centmin.sh menu option 5 will report latest within the major branch of your current version only. So 7.3.13 will report latest 7.3.x and 7.4.11 will report latest 7.4.x