Welcome to Centmin Mod Community
Become a Member

PHP-FPM PHP upgrades keep failing

Discussion in 'Install & Upgrades or Pre-Install Questions' started by CarpCharacin, Jan 20, 2017.

  1. CarpCharacin

    CarpCharacin Member

    267
    21
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +34
    Local Time:
    11:07 AM
    1.15.x
    MariaDB 10.1
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.11.8
    • PHP Version Installed: 7.1.0
    • MariaDB MySQL Version Installed: 10.1.20
    • When was last time updated Centmin Mod code base ? : today
    I keep trying to upgrade to php 7.1.1, but it keeps failing. I tried to upgrade before, but I had a problem with my internet connection so putty disconnected. I have tried to upgrade several times since and my internet connection is working fine now, but the upgrades keep failing. Could it be that it only partially downloaded PHP 7.1.1 and it is trying to update from that?


    Here is the error message
    Code (Text):
    Error: 2, PHP make failed (1.2.3-eva2000.09.001)
    
    report errors on the forums at community.centminmod.com/forums/8/
    Total PHP Upgrade Time: 1054.609863096 seconds
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    3:07 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    To troubleshoot, you need to check the the php upgrade log 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 initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    Also post output for the following

    Code (Text):
    php -v
    php --ini
    php --ri 'Zend Opcache'
    ls -lah /usr/local/bin/php
    


    Code (Text):
    ls -lah $(cat /usr/local/bin/php-config | awk '/^extension_dir/ {extdir=$1} END {gsub(/\047|extension_dir|=|)/,"",extdir); print extdir}')


    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 nginx_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. Do the same for any other relevant logs. i.e. if you ran centmin.sh menu option 10, you would have memcached_reinstall.log log too

    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 1 specific log, in this case most recent php_upgrade.log logs
     
  3. CarpCharacin

    CarpCharacin Member

    267
    21
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +34
    Local Time:
    11:07 AM
    1.15.x
    MariaDB 10.1
  4. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    3:07 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    how much system memory does server have ?
    Code (Text):
    free -m
    

    could be ran out of memory at the time of php compile
    Code (Text):
    gcc: error: ext/sqlite3/libsqlite/.libs/sqlite3.o: No such file or directory
    make: *** [sapi/cli/php] Error 1
    make: *** Waiting for unfinished jobs....
    gcc: error: ext/sqlite3/libsqlite/.libs/sqlite3.o: No such file or directory
    make: *** [sapi/fpm/php-fpm] Error 1
    
     
  5. CarpCharacin

    CarpCharacin Member

    267
    21
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +34
    Local Time:
    11:07 AM
    1.15.x
    MariaDB 10.1
    It is a linode 2gb.
    Code (Text):
                total        used        free      shared  buff/cache   available
    Mem:           1997         299         297          57        1400        1354
    Swap:           511           0         511
    
     
  6. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    3:07 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+