Welcome to Centmin Mod Community
Register Now

Upgrade PHP-FPM PHP 7.3 upgrade failed on 123.09beta01

Discussion in 'Install & Upgrades or Pre-Install Questions' started by NeiPCs, Jan 5, 2019.

  1. NeiPCs

    NeiPCs Member

    40
    9
    8
    Jun 28, 2014
    Ratings:
    +13
    Local Time:
    10:18 PM
    1.11.1
    5.5
    Hi George,

    I'm trying to update PHP to any version 7.x but got some trouble while upgrade, see:


    Code:
    service php-fpm restart
    Gracefully shutting down php-fpm  done
    Starting php-fpm  done
                   ____   _   _  ____       __  __         _
                  |  _ \ | | | ||  _ \  _  |  \/  |  __ _ | | __ ___
                  | |_) || |_| || |_) |(_) | |\/| | / _` || |/ // _ \
                  |  __/ |  _  ||  __/  _  | |  | || (_| ||   <|  __/
                  |_|    |_| |_||_|    (_) |_|  |_| \__,_||_|\_\\___|
    
    PHPMUVER = 7.3
    PHP_PGO = y
    make -j2 prof-gen
    make: *** No rule to make target `prof-gen'.  Stop.
    
    real    0m0.004s
    user    0m0.000s
    sys     0m0.003s
    /svr-setup /svr-setup/php-7.3.0/fpm-build
    Cloning into 'php_pgo_training_scripts'...
    
    real    0m0.511s
    user    0m0.212s
    sys     0m0.115s
    /svr-setup/php-7.3.0/fpm-build
    inc/php_upgrade.inc: line 551: ./sapi/cli/php: No such file or directory
    time ./sapi/cgi/php-cgi -T80 ../Zend/bench.php
    inc/php_upgrade.inc: line 553: ./sapi/cgi/php-cgi: No such file or directory
    
    real    0m0.001s
    user    0m0.000s
    sys     0m0.001s
    time ./sapi/cgi/php-cgi -T40 ../Zend/micro_bench.php
    inc/php_upgrade.inc: line 555: ./sapi/cgi/php-cgi: No such file or directory
    
    real    0m0.001s
    user    0m0.001s
    sys     0m0.000s
    ./sapi/cgi/php-cgi -T100 /svr-setup/php_pgo_training_scripts/index.php
    inc/php_upgrade.inc: line 557: ./sapi/cgi/php-cgi: No such file or directory
    
    real    0m0.001s
    user    0m0.000s
    sys     0m0.001s
    ./sapi/cgi/php-cgi -T100 /home/nginx/domains/confiatec.com.br/public/index.php
    inc/php_upgrade.inc: line 560: ./sapi/cgi/php-cgi: No such file or directory
    
    real    0m0.001s
    user    0m0.001s
    sys     0m0.000s
    make prof-clean
    make: *** No rule to make target `prof-clean'.  Stop.
    
    real    0m0.003s
    user    0m0.001s
    sys     0m0.002s
    make -j2 prof-use
    make: *** No rule to make target `prof-use'.  Stop.
    
    real    0m0.003s
    user    0m0.003s
    sys     0m0.000s
    
    Fri Jan  4 20:52:33 UTC 2019
    Error: 2, PHP make failed (123.09beta01.b088)
    
                  total        used        free      shared  buff/cache   available
    Mem:           1839         318         182          54        1338        1195
    Swap:           511         127         384
    
    report errors on the forums at community.centminmod.com/forums/8/
    
     
  2. eva2000

    eva2000 Administrator Staff Member

    42,346
    9,560
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,732
    Local Time:
    11:18 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Please fill in any relevant information that applies to you:
    • CentOS Version: i.e. CentOS 6 32bit or 64bit / CentOS 7 64bit ?
    • Centmin Mod Version Installed: i.e. 123.08stable or 123.09beta01
    • Nginx Version Installed: i.e. 1.15.3
    • PHP Version Installed: i.e. 5.6.37, 7.0.31, 7.1.21, 7.2.9
    • MariaDB MySQL Version Installed: i.e. 10.0.x or 10.1.xx or 10.2.xx
    • When was last time updated Centmin Mod code base ? : i.e. run centmin.sh menu option 23 submenu option 2 or cmupdate command
    • 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):
      cat /etc/centminmod/custom_config.inc
      

      Post output in CODE tags.
    Every centmin.sh menu option has a full server log created with time stamped file name at /root/centminlogs. You can check that specific error log for clues or copy and paste log contents and post to pastebin.com or gist.github.com for sharing.

    To troubleshoot, you need to check the the php upgrade logs at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the nginx_upgrade and php_upgrade logs. You can see full details at How to troubleshoot Centmin Mod initial install issues

    if you type this command it lists all logs in date ascending order so latest log at bottom
    Code (Text):
    ls -lArt /root/centminlogs

    so copy the entire contents of latest php_upgrade log to gist.github.com or pastebin.com

    you can use grep to filter the logs, i.e. look for nginx_upgrade or php in log name
    Code (Text):
    ls -lahrt /root/centminlogs/ | egrep 'nginx_upgrade|php_upgrade'
    

    Code (Text):
    ls -lahrt /root/centminlogs/ | egrep 'nginx_upgrade|php_upgrade'
    -rw-r--r--  1 root root  2.6M Oct  3 03:48 centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log
    -rw-r--r--  1 root root  664K Oct 12 09:24 centminmod_1.2.3-eva2000.09.001_121016-092406_nginx_upgrade.log
    

    So the last php upgrade log was named centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log and located at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log
    then use cat command to output the contents of that log.

    clear your ssh window buffer/screen and type
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log

    then select and copy and paste output to pastebin.com or gist.github.com file to share. If your SSH client's scroll buffer isn't large enough using cat might not output the entire log file contents, so you may need to download the log and use local text editor to open and copy and paste.

    so only need content of a specific log, in this case most recent php_upgrade.log logs