Discover Centmin Mod today
Register Now

PHP-FPM PHP8.4 Can't Install

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Matt, Jan 31, 2025.

  1. Matt

    Matt Well-Known Member

    932
    415
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +671
    Local Time:
    8:49 PM
    1.5.15
    MariaDB 10.2
    New VM I'm playing with:


    Code:
    Downloading PHP 8.4 from https://git.php.net/repository/php-src.git
    Cloning into 'php-8.4.0'...
    fatal: unable to access 'https://git.php.net/repository/php-src.git/': Could not resolve host: git.php.net
    
    real    0m0.062s
    user    0m0.000s
    sys     0m0.005s
    PHP8.3 installs fine, and first time I've seen this. Going to that URL in browser doesn't work either.

    Cheers,
    Matt
     
  2. pamamolf

    pamamolf Well-Known Member

    4,125
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    10:49 PM
    Nginx-1.29.x
    MariaDB 10.6.x
    If a proxy involves maybe that will work:
    Code:
    git config --global --unset https.proxy
    Then quit and restart terminal and try again.

    A restart of networking may help too...
     
  3. Matt

    Matt Well-Known Member

    932
    415
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +671
    Local Time:
    8:49 PM
    1.5.15
    MariaDB 10.2
    This is a brand new VM with no proxy involved.
     
  4. Matt

    Matt Well-Known Member

    932
    415
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +671
    Local Time:
    8:49 PM
    1.5.15
    MariaDB 10.2
    Also, I'm telling it to install PHP 8.4.3, but it's trying to download PHP 8.4.0:

    Code:
    -rw-r--r--  1 root root        45 Jan 30 17:08 php-8.4.0.tar.gz
    -rw-r--r--  1 root root       108 Jan 30 17:08 php-8.4.0.tar.xz
    Code:
    Current PHP Version: 8.3.16
    Latest PHP Version Installable: 8.4.3, 8.3.16, 8.2.27, 8.1.31, 8.0.30
    
    Enter PHP Version number you want to upgrade/downgrade to: 8.4.3
    
    Do you still want to continue? [y/n] y
    
    ----------------------------------------------------------------
    existing php.ini will be backed up at /usr/local/lib/php.ini-oldversion_300125-181635
    ----------------------------------------------------------------
    Downloading PHP 8.4 from https://git.php.net/repository/php-src.git
    Cloning into 'php-8.4.0'...
    fatal: unable to access 'https://git.php.net/repository/php-src.git/': Could not resolve host: git.php.net
    
    real    0m0.051s
    user    0m0.000s
    sys     0m0.005s
    Download PHP 8.4 completed
    
    Creating tar archive
    tar: php-8.4.0: Cannot stat: No such file or directory
    tar: Exiting with failure status due to previous errors
    tar: php-8.4.0: Cannot stat: No such file or directory
    tar: Exiting with failure status due to previous errors
    
     
  5. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    5:49 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Are you using Centmin Mod 131.00stable as it only supports max PHP 8.3 version. For PHP 8.4, only Centmin Mod 140.00beta01 supports it. Centmin Mod 131.00stable will try to install developer Github master PHP branch from old Centmin Mod 130.00beta01 testing which is probably what you're seeing.

    If you need PHP 8.4 official release, need Centmin Mod 140.00beta01.

    edit: thought I added a note to 131.00stable routine for PHP 8.4, but seems I didn't so updated 131.00stable's centmin.sh menu option 5 routine when PHP 8.4 attempt is made, give users note that only 140.00beta01 supports PHP 8.4 and need to switch to it

    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.31, 8.2.27, 8.3.16, 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.4 dev builds minus incompatible PHP extensions
    ----------------------------------------------------------------
    
    Current PHP Version: 8.3.16
    Latest PHP Version Installable: 8.3.16, 8.2.27, 8.1.31, 8.0.30
    
    Enter PHP Version number you want to upgrade/downgrade to: 8.4.3
    
    
    131.00stable Max supported PHP version is 8.3. For PHP => 8.4 support
    Upgrade switch to Centmin Mod 140.00beta01 or higher as per:
    https://community.centminmod.com/threads/25572/
    
    Update instructions https://community.centminmod.com/posts/100211/