Learn about Centmin Mod LEMP Stack today
Register Now

PHP-FPM failed PHP 5.6.21 upgrades ?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by apidevlab, May 7, 2016.

  1. apidevlab

    apidevlab Member

    91
    33
    18
    Mar 22, 2016
    /dev/null
    Ratings:
    +58
    Local Time:
    10:40 AM
    1.11.1
    5.2.14-122
    Gives me
    Code (Text):
    imagick module => enabled
    imagick module version => 3.4.2
    imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
    Imagick compiled with ImageMagick version => ImageMagick 6.9.3-10 Q16 x86_64 2016-05-04
    


    So update centmin mod code via centmin.sh menu option 23 submenu option 2
    then latest centmin.sh menu option 15

    Do I still need to re-compile PHP (Option 5) as PHPINFO shows module version 3.4.1 (browser cache issue) ?


    Have run centmin.sh option 5 > 5.6.21 and on x2 BETA machines
    Code (Text):
    
    Processors physical = 1, cores = 1, virtual = 1, hyperthreading = no
    
      1  2000.000
      1  Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
      1  20480 KB
    
    System Uptime:  up 45 days, 14:12,
    MySQL Server Started  2016-04-09 16:59:16
    MySQL Uptime:  27 days 20 hours 46 min 46 sec
    MySQL Uptime (secs):  2407606
    Server Type:  vmware
    CentOS Version:  6.7
    Centmin Mod:  1.2.3-eva2000.09.001
    Nginx PageSpeed:  OFF
    Nginx Version:  1.9.15
    PHP-FPM Version:  5.6.19
    MariaDB Version:  10.1.13
    

    Seems php upgrade/recompile has failed. Will check through the logs (seems both sites are still on 5.6.19)

    Code (Text):
    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
    sed: can't read conftest.err: No such file or directory
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables... configure: error: in `/svr-setup/php-5.6.21/fpm-build':
    configure: error: cannot compute suffix of executables: cannot compile and link
    See `config.log' for more details
    make: *** No targets specified and no makefile found.  Stop.
    


    As ever @eva2000 please move this post if it's not appropriate here. The nginx OpenSSL patching (x3 openvz machines) was fine with no errors or issues.

    WIERD a virtually identical box upgraded PHP fine???

    Code (Text):
    Processors physical = 1, cores = 1, virtual = 1, hyperthreading = no
    
      1  2299.998
      1  Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz
      1  25600 KB
    
     System Uptime:  up 42 days, 15:13,
     MySQL Server Started  2016-03-26 08:35:11
     MySQL Uptime:  42 days 3 hours 24 min 59 sec
     MySQL Uptime (secs):  3641099
     Server Type:  vmware
     CentOS Version:  6.7
     Centmin Mod:  1.2.3-eva2000.09.001
     Nginx PageSpeed:  OFF
     Nginx Version:  1.9.15
     PHP-FPM Version:  5.6.21
     MariaDB Version:  10.1.13
    
     
    Last edited: May 7, 2016
  2. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    7:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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 i.e. *_php_upgrade.log logs

    Use this command to list all logs in /root/centminlogs in date descending order so most recent logs are at bottom
    Code:
    ls -lAhrt /root/centminlogs
    For example
    Code:
    ls -lAhrt /root/centminlogs
    total 16M
    -rw-r--r-- 1 root root 9.8K Sep 18 13:47 centminmod_1.2.3-eva2000.08_180915-094703_yuminstall_centos6.log
    -rw-r--r-- 1 root root 52K Sep 18 13:48 centminmod_yumtimes_180915-094703.log
    -rw-r--r-- 1 root root 37 Sep 18 13:48 centminmod_profiletimes_180915-094703.log
    -rw-r--r-- 1 root root 234K Sep 18 13:48 centminmod_downloadtimes_180915-094703.log
    -rw-r--r-- 1 root root 199 Sep 18 13:48 securedtmp.log
    -rw-r--r-- 1 root root 44 Sep 18 13:50 centminmod_libresslinstalltime_180915-094703.log
    -rw-r--r-- 1 root root 1.2K Sep 18 13:50 gcc_native.log
    -rw-r--r-- 1 root root 939K Sep 18 13:52 centminmod_ngxinstalltime_180915-094703.log
    -rw-r--r-- 1 root root 58 Sep 18 13:55 centminmod_phpinstalltime_180915-094703.log
    -rw-r--r-- 1 root root 25K Sep 18 13:59 centminmod_1.2.3-eva2000.08_180915-094703_yum-log.log
    -rw-r--r-- 1 root root 20 Sep 18 13:59 install.utc.time.log
    -rw-r--r-- 1 root root 2.6M Sep 18 13:59 centminmod_1.2.3-eva2000.08_180915-094703_install.log
    -rw-r--r-- 1 root root 49 Sep 18 13:59 firstyum_installtime_180915-094252.log
    -rw-r--r-- 1 root root 12K Sep 18 14:02 centminmod_1.2.3-eva2000.08_180915-140110_nginx_addvhost.log
    -rw-r--r-- 1 root root 1.8M Sep 19 05:58 centminmod_1.2.3-eva2000.08_190915-055517_php_upgrade.log
    -rw-r--r-- 1 root root 1.8M Sep 19 06:22 centminmod_1.2.3-eva2000.08_190915-061910_php_upgrade.log
    -rw-r--r-- 1 root root 939K Sep 19 06:28 centminmod_1.2.3-eva2000.08_190915-062728_php_upgrade.log
    -rw-r--r-- 1 root root 1.8M Sep 19 06:32 centminmod_1.2.3-eva2000.08_190915-062943_php_upgrade.log
    -rw-r--r-- 1 root root 1.8M Sep 19 06:53 centminmod_1.2.3-eva2000.08_190915-065026_php_upgrade.log
    -rw-r--r-- 1 root root 1.8M Sep 19 07:14 centminmod_1.2.3-eva2000.08_190915-065820_php_upgrade.log
    -rw-r--r-- 1 root root 381 Sep 19 07:15 zendopcache_passfile.txt
    -rw-r--r-- 1 root root 23K Sep 19 07:15 centminmod_1.2.3-eva2000.08_190915-065820_zendopcache_install_submenu.log
    -rw-r--r-- 1 root root 1.5K Sep 19 08:20 centminmod_1.2.3-eva2000.08_190915-081959_git_envsetup.log
    -rw-r--r-- 1 root root 3.6K Sep 19 08:22 centminmod_1.2.3-eva2000.08_190915-082216_git_updatenew_branch.log
    -rw-r--r-- 1 root root 1.8M Sep 19 08:26 centminmod_1.2.3-eva2000.09_190915-082435_php_upgrade.log
    -rw-r--r-- 1 root root 7.8K Sep 20 17:17 centminmod_200915-171650_nginx_addvhost_nv.log
    -rw-r--r-- 1 root root 8.7K Sep 20 19:40 centminmod_1.2.3-eva2000.09_200915-193955_nginx_addvhost.log
    -rw-r--r-- 1 root root 9.3K Sep 20 20:04 centminmod_200915-200339_nginx_addvhost_nv.log
     
  3. apidevlab

    apidevlab Member

    91
    33
    18
    Mar 22, 2016
    /dev/null
    Ratings:
    +58
    Local Time:
    10:40 AM
    1.11.1
    5.2.14-122
    :) thanks for the move. I have tried to run the upgrade again but it's still failing. What is bizarre is NO LOGS are being produced. The php upgrade log(s) are from the last (to 5.6.20) 6 April 2016 which was successful. These are simply dev/test boxes with no vhosts etc just for tinkering.

    I have been looking at the terminal output for clues? Both boxes have followed:

    option 5 (update yum option=y) > FAILED

    Code (Text):
    service php-fpm restart
    Gracefully shutting down php-fpm ................................... failed. Use force-exit
    Starting php-fpm [07-May-2016 15:17:26] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98)
    [07-May-2016 15:17:26] ERROR: FPM initialization failed
     failed
    


    Code (Text):
    libtool: link: `ext/pcre/pcrelib/pcre_exec.lo' is not a valid libtool object
    make: *** [sapi/cli/php] Error 1
    make: *** Waiting for unfinished jobs....
    libtool: link: `ext/pcre/pcrelib/pcre_exec.lo' is not a valid libtool object
    make: *** [sapi/fpm/php-fpm] Error 1
    
    real  0m0.656s
    user  0m0.316s
    sys  0m0.153s
    
    Sat May  7 15:17:27 CEST 2016
    Error: 2, PHP make failed (1.2.3-eva2000.09.001)
    
    Total PHP Upgrade Time: 1819.391413849 seconds
    
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    7:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Try deleting php 5.6.21 source and try again with centmin.sh menu option 5
    Code (Text):
    rm -rf /svr-setup/php-5.6.21*
     
  5. apidevlab

    apidevlab Member

    91
    33
    18
    Mar 22, 2016
    /dev/null
    Ratings:
    +58
    Local Time:
    10:40 AM
    1.11.1
    5.2.14-122
    Well I rebooted 1 machine and tried option 5 (no yum update + no zend opcache) what do you know....
    Code (Text):
    ***************************************************
    * PHP upgraded and auto reinstalled PHP extensions
    ***************************************************
    


    I expect the other box will compile ok now, all good learning :)

    I can now continue to update 'semi' live boxes (wp test installs) after Important Security Updates for Centmin Mod LEMP Users - OpenSSL, LibreSSL & ImageMagick | Centmin Mod Community
     
    Last edited: May 8, 2016