Want more timely Centmin Mod News Updates?
Become a Member

PHP-FPM Upgrade issue

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Exurant, Jan 25, 2017.

  1. Exurant

    Exurant New Member

    2
    1
    3
    Dec 19, 2016
    Ratings:
    +1
    Local Time:
    6:11 PM
    Please fill in any relevant information that applies to you:
    • CentOS Version: i.e. CentOS 6 64
    • Centmin Mod Version Installed: i.e. 123.08stable
    • Nginx Version Installed: 1.11.8
    • PHP Version Installed: 5.5.38.
    • MariaDB MySQL Version Installed: 10.0.29

    trying to update to PHP 5.6.27 this happens all the time please help

    *************************************************
    Automatically continuing upgrade in 6 seconds...
    *************************************************

    make: *** No rule to make target `clean'. Stop.
    Forcing buildconf
    Removing configure caches
    buildconf: checking installation...
    buildconf: autoconf version 2.63 (ok)
    make: *** No rule to make target `clean'. Stop.
    ../configure --enable-fpm --enable-opcache --enable-intl --enable-pcntl --with-mcrypt --with-snmp --with-mhash --with-zlib --with-gettext --enable-exif --enable-zip --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-vpx-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 --with-config-file-scan-dir=/etc/centminmod/php.d --with-xsl
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    checking whether the C compiler works... no
    configure: error: in `/svr-setup/php-5.6.27/fpm-build':
    configure: error: C compiler cannot create executables
    See `config.log' for more details
    make: *** No targets specified and no makefile found. Stop.

    real 0m0.002s
    user 0m0.001s
    sys 0m0.000s
    make: *** No rule to make target `install'. Stop.

    real 0m0.002s
    user 0m0.001s
    sys 0m0.000s

    strip PHP binary...
    -rwxr-xr-x 1 root root 9.1M Jan 25 13:31 /usr/local/bin/php
    -rwxr-xr-x 1 root root 9.1M Jan 25 13:31 /usr/local/bin/php-cgi
    -rwxr-xr-x 1 root root 9.1M Jan 25 13:35 /usr/local/bin/php
    -rwxr-xr-x 1 root root 9.1M Jan 25 13:35 /usr/local/bin/php-cgi


    Wed Jan 25 13:35:14 UTC 2017
    Success: PHP configure ok


    service php-fpm restart
    Gracefully shutting down php-fpm . done
    Starting php-fpm done
    make -j2
    make: *** No targets specified and no makefile found. Stop.

    real 0m0.002s
    user 0m0.001s
    sys 0m0.001s

    Wed Jan 25 13:35:15 UTC 2017
    Error: 2, PHP make failed (1.2.3-eva2000.08)
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,868
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    9:11 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    PHP 5.6.30 is the latest https://community.centminmod.com/threads/php-5-6-30-is-available.10102/. Have you tried that yet ?

    • There's numerous code changes, bug fixes over time, so ensure you have latest Centmin Mod code installed by upgrading your Centmin Mod code as instructed below.
    • Which version did you upgrade from ?
    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

    Upgrading Centmin Mod Code to Latest Version



    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code outlined at Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS This is heart of Centmin Mod where the code is the engine that runs centmin.sh shell based menu and all the automation you're accustomed to.
    2. Upgrade software that Centmin Mod installed or manages. For this part following outline at Upgrade - How to upgrade Centmin Mod | Centmin Mod Community
    So essentially, you can upgrade from .07 to .08 in place, but not everything is upgraded as some things like server initial environment setup isn't changed i.e. how swap, tmp setup and allocation are created etc. The main parts from part 2 above are what in place upgrades do i.e. Nginx and PHP-FPM compilation and config/settings parameters and MariaDB version from 5.5 to 10.0.x. If you want the full environment changed including tmp and swap setup to .08's configuration, then you would need a fresh OS install and fresh .08 initial install. You can think of it like upgrading Windows 7 to Windows 8. An in place upgrade will upgrade code but won't change your computer environment from when you installed Windows 7 i.e. disk configuration and partition sizes won't change from when you initially installed Windows 7. Only way to change that would be fresh Windows 8 install.