Join the community today
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

    35
    13
    8
    May 31, 2014
    Dhaka, Bangladesh
    Ratings:
    +13
    Local Time:
    6:08 PM
    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

    4,990
    1,190
    113
    May 25, 2014
    Ratings:
    +1,812
    Local Time:
    8:08 PM
    Mainline
    10.2
    Clear /svr-setup/* dir.
     
  3. eva2000

    eva2000 Administrator Staff Member

    45,441
    10,312
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,994
    Local Time:
    10:08 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    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*