Get the most out of your Centmin Mod LEMP stack
Become a Member

PHP-FPM betainstaller73.sh missing PHP 7.3 install

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Jimmy, Mar 25, 2019.

  1. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    1:18 AM
    @eva2000 I'm getting an error which may be related to this on a vanilla install on a Virtualbox VM. I just created a VM w/ 7.3 one liner a week ago without issue, not PHP is not getting installed.


    Code:
    --------------------------------------------------------
    Check PHP-FPM Version:
    --------------------------------------------------------
    which: no php in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    inc/centminfinish.inc: line 103: -v: command not found
    
    Code:
    [root@DEVBOX44X ~]# lscpu
    Architecture:          x86_64
    CPU op-mode(s):        32-bit, 64-bit
    Byte Order:            Little Endian
    CPU(s):                4
    On-line CPU(s) list:   0-3
    Thread(s) per core:    1
    Core(s) per socket:    4
    Socket(s):             1
    NUMA node(s):          1
    Vendor ID:             GenuineIntel
    CPU family:            6
    Model:                 158
    Model name:            Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
    Stepping:              10
    CPU MHz:               3695.998
    BogoMIPS:              7391.99
    Hypervisor vendor:     KVM
    Virtualization type:   full
    L1d cache:             32K
    L1i cache:             32K
    L2 cache:              256K
    L3 cache:              12288K
    NUMA node0 CPU(s):     0-3
    Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx rdrand hypervisor lahf_lm abm 3dnowprefetch fsgsbase avx2 invpcid rdseed clflushopt flush_l1d
    
     
  2. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:18 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    your log is named = installer_240319-165611_minimal.log
     
  3. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    1:18 AM
    CMM_errors

    Tried to install php via the menu and got this:

    Code:
    Do you want to run YUM install checks ?  [y/n]
    
    This will increase your upgrade duration time wise.
    Check the change log centminmod.com/changelog.html
    to see if any Nginx or PHP related new additions
    which require checking YUM prequisites are met.
    If no new additions made, you can skip the
    YUM install check to speed up upgrade time.
    
     [y/n]: n
         ____   _   _  ____       _   _                                _       
        |  _ \ | | | ||  _ \  _  | | | | _ __    __ _  _ __  __ _   __| |  ___
        | |_) || |_| || |_) |(_) | | | || '_ \  / _` || '__|/ _` | / _` | / _ \
        |  __/ |  _  ||  __/  _  | |_| || |_) || (_| || |  | (_| || (_| ||  __/
        |_|    |_| |_||_|    (_)  \___/ | .__/  \__, ||_|   \__,_| \__,_| \___|
                                        |_|     |___/                         
     
    PHP Upgrade/Downgrade - Would you like to continue? [y/n] y
    
    ----------------------------------------------------------------
    Install which version of PHP? (version i.e. , 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 7.4.0 dev builds minus incompatible PHP extensions
    ----------------------------------------------------------------
    Enter PHP Version number you want to upgrade/downgrade to: 7.3.3
    ----------------------------------------------------------------
    existing php.ini will be backed up at /usr/local/lib/php.ini-oldversion_240319-214916
    ----------------------------------------------------------------
    inc/php_upgrade.inc: line 345: php: command not found
    inc/php_upgrade.inc: line 14: php: command not found
    
    -----------------------------------------------------------------------------------------
    Detected PHP 7.3 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
    
    
    Creating htpasswd_opcache user/pass...
    /usr/local/nginx/conf/htpasswd.sh create /usr/local/nginx/conf/htpasswd_opcache opadmindP6zzAgXoOioA 5T5c61UwGhC9djOmo4W7D7yZajyJg
    
    /usr/local/nginx/conf/htpasswd_opcache contents:
    opadmindP6zzAgXoOioA:$apr1$Qas4Lscc$6tpBdmtfltJ4v8y0.JNQz/
    
    Insert Username/Password into /usr/local/nginx/html/0a205066c2fa668a_opcache.php file itself
    
    Create include file /usr/local/nginx/conf/include_opcache.conf
    
                location ~ ^/(0a205066c2fa668a_opcache.php) {
        include /usr/local/nginx/conf/php.conf;
      auth_basic "Password Protected";
      auth_basic_user_file /usr/local/nginx/conf/htpasswd_opcache;
                }
    
    Setup virtual.conf
    Adding /usr/local/nginx/conf/include_opcache.conf include entry
    
    service nginx reload
    Reloading nginx configuration (via systemctl):  [  OK  ]
    cat: /usr/local/bin/php-config: No such file or directory
    cat: /usr/local/bin/php-config: No such file or directory
    grep: /etc/centminmod/php.d/zendopcache.ini: No such file or directory
    
    
    
    Copying zendopcache.ini > /etc/centminmod/php.d/zendopcache.ini
    
    *************************************************
    * Zend Optimizer Plus OPcache configured
    *************************************************
    
    PHP 7+ detected which uses newer mysqlnd
    or PDO MySQL extensions and removed the
    legacy mysql extension. You can optionally
    re-add the removed legacy mysql extension
    to PHP 7+ by answering yes to next question
    Only answer yes if you know for sure you
    have very old web scripts which need mysql
    legacy extension re-added. Otherwise answer
    no which is recommended for best stability
    
    Re-add legacy mysql extension to PHP 7+ [y/n] ?
    
     
    Last edited: Mar 25, 2019
  4. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    1:18 AM
    Looks the like re-install via the cmm menu worked.
    Code:
    [21:57][root@DEVBOX44X centminmod]# php -v
    PHP 7.3.3 (cli) (built: Mar 24 2019 21:54:52) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.3.3, Copyright (c) 1998-2018 Zend Technologies
        with Zend OPcache v7.3.3, Copyright (c) 1999-2018, by Zend Technologies
    
    Code:
    service php-fpm restart
    Redirecting to /bin/systemctl restart php-fpm.service
    
    -------------------------------------------------------
    File Location: /usr/local/nginx/html/0a205066c2fa668a_opcache.php
    Password protected DEVBOX44X/0a205066c2fa668a_opcache.php
    -------------------------------------------------------
    Username: opadmindP6zzAgXoOioA
    Password: 5T5c61UwGhC9djOmo4W7D7yZajyJg
    -------------------------------------------------------
    
    7.3
    0
    ***************************************************
    PHP 7.0/7.1/7.2/7.3 detected.. remove unsupported PHP extensions manually
    by removing their ini files listed below (if list is empty = nothing to do):
    ***************************************************
    
    
    
    then restart PHP-FPM again...
    
    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           [ -L/usr/local/lib64]
      --libs              [-lcrypt  -lc-client  -lzip -lzip -lz -lexslt -ltidy -largon2 -lresolv -lcrypt -lsodium -ledit -lncurses -laspell -lpspell -lrt -lldap -llber -lstdc++ -lcrypt -lpam -lgmp -lX11 -lXpm -lpng -lz -ljpeg -lwebp -lenchant -lbz2 -lz -lrt -lm -ldl -lnsl  -lsystemd -lxml2 -lz -lm -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lcurl -lxml2 -lz -lm -ldl -lssl -lcrypto -lfreetype -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -licuio -licui18n -licuuc -licudata -lxml2 -lz -lm -ldl -lnetsnmp -lssl -lssl -lcrypto -lm -lxml2 -lz -lm -ldl -lcrypt -largon2 -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxslt -lxml2 -lz -ldl -lm -lssl -lcrypto -lcrypt ]
      --extension-dir     [/usr/local/lib/php/extensions/no-debug-non-zts-20180731]
      --include-dir       [/usr/local/include/php]
      --man-dir           [/usr/local/php/man]
      --php-binary        [/usr/local/bin/php]
      --php-sapis         [ cli embed fpm phpdbg cgi]
      --configure-options [--enable-fpm --enable-opcache --enable-intl --enable-pcntl --with-mcrypt --with-snmp --enable-embed=shared --with-mhash --with-zlib --with-gettext --enable-exif --enable-zip --with-libzip --with-bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --with-curl --with-gd --with-xmlrpc --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-webp-dir=/usr --with-t1lib=/usr --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 --disable-fileinfo --with-ldap --with-ldap-sasl --enable-huge-code-pages --with-password-argon2 --with-sodium --with-config-file-scan-dir=/etc/centminmod/php.d --with-fpm-systemd --with-xsl]
      --version           [7.3.3]
      --vernum            [70303]
    ***************************************************
    * PHP compiled with CPU_MARCH=skylake
    * PHP upgraded and auto reinstalled PHP extensions
    ***************************************************
       ____   _   _  ____    _   _                                _            _
      |  _ \ | | | ||  _ \  | | | | _ __    __ _  _ __  __ _   __| |  ___   __| |
      | |_) || |_| || |_) | | | | || '_ \  / _` || '__|/ _` | / _` | / _ \ / _` |
      |  __/ |  _  ||  __/  | |_| || |_) || (_| || |  | (_| || (_| ||  __/| (_| |
      |_|    |_| |_||_|      \___/ | .__/  \__, ||_|   \__,_| \__,_| \___| \__,_|
                                   |_|     |___/                                 
    Total PHP Upgrade Time: 369.578293311 seconds
    
     
  5. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:18 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    PHP failed to install because download it seems be 404 not found
    Code (Text):
    (B[m
    US server detected
    HTTP/1.1 301 Moved Permanently
    [1;33;40mDownload php-.tar.gz ...
    (B[maxel -4 http://php.net/get/php-.tar.gz/from/this/mirror -o php-.tar.gz
    Initializing download: http://php.net/get/php-.tar.gz/from/this/mirror
    HTTP/1.1 404 Not Found
    [1;32;40mError: php-.tar.gz download failed.
    
     
  6. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    1:18 AM
    I'll try to do a server install again and see what happens. Glad it wasn't something major. Thanks for looking!
     
  7. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    1:18 AM
    Failed again using the 7.3 one liner.
    Code:
    US server detected
    HTTP/1.1 301 Moved Permanently
    Download php-.tar.gz ...
    axel -4 http://php.net/get/php-.tar.gz/from/this/mirror -o php-.tar.gz
    Initializing download: http://php.net/get/php-.tar.gz/from/this/mirror
    HTTP/1.1 404 Not Found
    Error: php-.tar.gz download failed.
    
     
  8. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:18 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    hmm php.net must of changed the format of their site as the command to grab latest version from their site comes up blank now
    Code (Text):
    curl -4s http://php.net/downloads.php | egrep -o "php\-[0-9.]+\.tar[.a-z]*" | grep -v '.asc' | awk -F "php-" '/.tar.gz$/ {print $2}' | sed -e 's|.tar.gz||g' | uniq | grep '7.3' | head -n1


    seems broken php.net ?

    www version 302

    Code (Text):
    curl -4s http://www.php.net/downloads.php
    <html>
    <head><title>302 Found</title></head>
    <body bgcolor="white">
    <center><h1>302 Found</h1></center>
    <hr><center>nginx/1.10.3</center>
    </body>
    </html>
    

    non-www 301
    Code (Text):
    curl -4s http://php.net/downloads.php 
    <html>
    <head><title>301 Moved Permanently</title></head>
    <body bgcolor="white">
    <center><h1>301 Moved Permanently</h1></center>
    <hr><center>Myra</center>
    </body>
    </html>
    

    www version 302 redicts to non-www
    Code (Text):
    curl -4I http://www.php.net/downloads.php
    HTTP/1.1 302 Moved Temporarily
    Server: myracloud
    Date: Mon, 25 Mar 2019 00:16:12 GMT
    Content-Type: text/html
    Content-Length: 161
    Connection: keep-alive
    Location: https://www.php.net/
    Expires: Mon, 25 Mar 2019 00:16:12 GMT
    Cache-Control: max-age=0
    

    non-www redirects to non-www version and/downloads.php
    Code (Text):
    curl -4I http://php.net/downloads.php   
    HTTP/1.1 301 Moved Permanently
    Server: myracloud
    Date: Mon, 25 Mar 2019 00:16:21 GMT
    Content-Type: text/html
    Content-Length: 177
    Connection: keep-alive
    Location: https://php.net/downloads.php
    
     
  9. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:18 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    looks like php.net now is forcing https but over www version of domain
    Code (Text):
    curl -4s https://www.php.net/downloads.php | egrep -o "php\-[0-9.]+\.tar[.a-z]*" | grep -v '.asc' | awk -F "php-" '/.tar.gz$/ {print $2}' | sed -e 's|.tar.gz||g' | uniq | grep '7.3' | head -n1
    7.3.3
    
     
  10. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    1:18 AM
    Sounds like php.net is having issues.

    Just tried 7.2 and that had issues too.
     
  11. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:18 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    updated 123.09beta01 with the fix :D
     
  12. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    1:18 AM
    Still having an issue with 7.3.3 one line installer.
    Code:
    US server detected
    HTTP/1.1 301 Moved Permanently
    Download php-.tar.gz ...
    axel -4 http://php.net/get/php-.tar.gz/from/this/mirror -o php-.tar.gz
    Initializing download: http://php.net/get/php-.tar.gz/from/this/mirror
    HTTP/1.1 404 Not Found
    Error: php-.tar.gz download failed.
    
    
     
  13. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:18 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    what's out for
    Code (Text):
    cd /usr/local/src/centminmod
    git log -1 | sed -e 's|Author: George Liu <.*>|Author: George Liu <snipped>|g'
    
     
  14. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:18 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    what's out for
    Code (Text):
    cd /usr/local/src/centminmod
    git log -1 | sed -e 's|Author: George Liu <.*>|Author: George Liu <snipped>|g'
    
     
  15. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    1:18 AM
    Code:
    [root@devbox44x centminmod]# git log -1 | sed -e 's|Author: George Liu <.*>|Author: George Liu <snipped>|g'
    commit bebbcfa3efdefb8175fde581621a4d86cbe6c486
    Author: George Liu <snipped>
    Date:   Mon Mar 25 10:38:36 2019 +1000
    
        part 2 fix installer php version detection in 123.09beta01
        
        future proof fix by allowing curl to follow redirects for php download page so if in future php.net changes their download url, curl can follow that to destination https://community.centminmod.com/threads/php-missing-in-new-centminmod-installs.16977/page-2#post-71990
    
     
  16. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:18 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    ah updated 123.09beta01 with the actual fix for download urls too - previously only fixed the php version detection url
     
  17. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    1:18 AM
    I just did another run and got the same php error.
     
  18. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:18 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    cmupdate first ? which geographical location is the server ?

    you can run command = cminfo to find the geo location centmin detects
     
  19. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    1:18 AM
    That was the one liner install of 7.3 so it's whatever that one liner is pulling down.

    US Server.
     
  20. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:18 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    should be fixed by now the installers only set the PHP version, centmin itself does the download according to that set PHP version