Join the community today
Register Now

PHP-FPM Unable to upgrade php

Discussion in 'Install & Upgrades or Pre-Install Questions' started by yunos, Feb 24, 2020.

  1. yunos

    yunos Member

    130
    3
    18
    Aug 8, 2015
    Ratings:
    +17
    Local Time:
    3:48 AM
    1.8.0
  2. eva2000

    eva2000 Administrator Staff Member

    59,284
    12,509
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,141
    Local Time:
    11:48 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    looks like your server either lost network connectivity or pecl.php.net server is down or not connecting to your server

    what output do you get from command
    Code (Text):
    curl -I https://pecl.php.net/get/mcrypt-1.0.1.tgz

    for posting code or output from commands to keep the formatting, you might want to use CODE tags for code How to use forum BBCODE code tags :)

    please provide all info asked at PHP-FPM - How to troubleshoot PHP installs/upgrades
     
  3. yunos

    yunos Member

    130
    3
    18
    Aug 8, 2015
    Ratings:
    +17
    Local Time:
    3:48 AM
    1.8.0
    sure.
    Code:
    curl -I https://pecl.php.net/get/mcrypt-1.0.1.tgz
    curl: (7) Failed connect to pecl.php.net:443; Connection timed out
    
    
    php upgrade log, cant use pastebin since my log exceed the allowed size
    centminmod_123.09beta01.b437_240220-085446_php_upgrade
      • CentOS Version: i.e. CentOS 7 64 bit
      • Centmin Mod Version Installed: 123.09beta01
      • Nginx Version Installed: 1.17.8
      • PHP Version Installed: 7.4.1
      • MariaDB MySQL Version Installed: 10.3
      • When was last time updated Centmin Mod code base ? : Today
      • Persistent Config:
      [/URL]
    Code:
    LETSENCRYPT_DETECT='y'
    LIBRESSL_SWITCH='n'
    KEYLENGTH='ec-256'
    PHP_PGO='y'
    NGINX_DYNAMICTLS='y'
    NGINX_HPACK='y'
    OPENSSLECDSA_PATCH='y'    
    OPENSSLECDHX_PATCH='y'
    OPENSSLEQUALCIPHER_PATCH='n'
    CLOUDFLARE_ZLIBPHP='y'
    CLOUDFLARE_ZLIB='y'
    PHPPGO_INDEXPATH='/home/nginx/domains/domain.me/public/index.php'
    DUALCERTS='y'
    ENABLEMOTD_CSFMSG='n'
    ENABLEMOTD_LINKSMSG='n'
    MM_LICENSE_KEY='something'
    MM_CSF_SRC='y'
    
     
    Last edited: Feb 24, 2020
  4. eva2000

    eva2000 Administrator Staff Member

    59,284
    12,509
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,141
    Local Time:
    11:48 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    try removing CLOUDFLARE_ZLIBPHP='y' as it's buggy but i believe i disabled that before

    but might be unrelated it's pecl.php.net connectivity to your server - either your server's DNS related or pecl.php.net end had temp issue

    run cmupdate command as i added wget retry limit to mcrypt downloads so after 3 checks it aborts the download to continue.

    and then run centmin.sh menu option 5 again to update to PHP 7.4.3 and after check if mcrypt was installed
    Code (Text):
    php --ri mcrypt

    Code (Text):
    php --ri mcrypt
    mcrypt
    mcrypt support => enabled
    mcrypt_filter support => enabled
    Version => 2.5.8
    Api No => 20021217
    Supported ciphers => cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes 
    Supported modes => cbc cfb ctr ecb ncfb nofb ofb stream 
    Directive => Local Value => Master Value
    mcrypt.algorithms_dir => no value => no value
    mcrypt.modes_dir => no value => no value
    
     
  5. yunos

    yunos Member

    130
    3
    18
    Aug 8, 2015
    Ratings:
    +17
    Local Time:
    3:48 AM
    1.8.0
    not sure if it worked or not
    Well i use this on resolv.conf

    nameserver 1.1.1.1
    nameserver 1.0.0.1
    nameserver 67.222.159.251 //dc dns
    nameserver 67.222.159.250 //dc dns


    mcrypt

    mcrypt support => enabled
    mcrypt_filter support => enabled
    Version => 2.5.8
    Api No => 20021217
    Supported ciphers => cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes
    Supported modes => cbc cfb ctr ecb ncfb nofb ofb stream

    Directive => Local Value => Master Value
    mcrypt.algorithms_dir => no value => no value
    mcrypt.modes_dir => no value => no value
     
  6. yunos

    yunos Member

    130
    3
    18
    Aug 8, 2015
    Ratings:
    +17
    Local Time:
    3:48 AM
    1.8.0
    nope still get connection timeout when i did curl, any solutions like mirrors?
     
  7. eva2000

    eva2000 Administrator Staff Member

    59,284
    12,509
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,141
    Local Time:
    11:48 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    that suggests it works as mcrypt 1.0.3 download via pecl doesn't actually register with PHP 7.4 and only with lower PHP versions. Seems 7.4 has it's own mcrypt so the pecl.php.net time outs don't matter for building PHP 7.4 only lower PHP versions specific to your VPS - could be pecl.php.net server has blocked your server/server's network from connecting or something in dns on your server end.

    Who is your web host for Centmin Mod server ? You can post output for command below to get server's IP ASN owner
    Code (Text):
    curl https://ipinfo.io/org

    example output from my OVH server
    Code (Text):
    curl https://ipinfo.io/org
    AS16276 OVH SAS
    

    So web hosts known for spam have other folks blocking entire ASN range of IPs. One commonly blocked one is colocrossing ASN.

    Does PHP 7.4 complete install though to the end ? if so you should be fine even if pecl.php.net download timeouts for PHP 7.4

    output for ?
    Code (Text):
    php -v

    should reveal if PHP 7.4 was installed properly
     
  8. yunos

    yunos Member

    130
    3
    18
    Aug 8, 2015
    Ratings:
    +17
    Local Time:
    3:48 AM
    1.8.0
    oh yeah this time the php finished the install


    AS393398 Dallas Infrastructure Services, LLC


    PHP 7.4.3 (cli) (built: Feb 24 2020 14:39:40) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
     
  9. eva2000

    eva2000 Administrator Staff Member

    59,284
    12,509
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,141
    Local Time:
    11:48 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+