Welcome to Centmin Mod Community
Register Now

PHP-FPM I can't upgrade to PHP 5.6.13

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Lil.Tee, Sep 22, 2015.

  1. Lil.Tee

    Lil.Tee New Member

    24
    1
    3
    Sep 11, 2015
    Ratings:
    +1
    Local Time:
    1:55 PM
    1.11.1
    MariaDB 10
    Hello,
    I can't upgarade to PHP 5.6.13 by centminmod
    Code:
    *************************************************
    
    Tue Sep 22 03:08:59 UTC 2015
    Error: 2, PHP make failed (1.2.3-eva2000.08)
    
    *************************************************     
    Can you help me?

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,163
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    4:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    • What version of Centmin Mod ? .07 stable or .08 stable or .09 beta01 ? Was it fresh install or upgrade ? How long ago did you install Centmin Mod ? 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.
    • What version of PHP used ? Did you upgrade or downgrade PHP recently ? Which version did you upgrade from ?
    • If you upgrade to PHP 7.0.0-dev it doesn't support memcache, igbinary, geoip or imagick PHP extensions. If you're testing PHP 7, on restarting PHP-FPM you will get some PHP warnings that some PHP extensions are unable to load as PHP 7 doesn't support them. So all you need to do is delete the releveant *.ini files for them


    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.

    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

    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.
     
  3. Lil.Tee

    Lil.Tee New Member

    24
    1
    3
    Sep 11, 2015
    Ratings:
    +1
    Local Time:
    1:55 PM
    1.11.1
    MariaDB 10
    Hi,
    • What version of Centmin Mod ? .07 stable or .08 stable or .09 beta01 ? Was it fresh install or upgrade ? How long ago did you install Centmin Mod ? 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.
    • centminmod_1.2.3-eva2000.08
    • What version of PHP used ? Did you upgrade or downgrade PHP recently ? Which version did you upgrade from ?
    • Default. I want to upgrade to 5.6.13
    • If you upgrade to PHP 7.0.0-dev it doesn't support memcache, igbinary, geoip or imagick PHP extensions. If you're testing PHP 7, on restarting PHP-FPM you will get some PHP warnings that some PHP extensions are unable to load as PHP 7 doesn't support them. So all you need to do is delete the releveant *.ini files for them
    Code:
    total 8.1M
    -rw-r--r-- 1 root root  10K Sep 10 04:00 centminmod_1.2.3-eva2000.08_090915-235712_yuminstall_centos6.log
    -rw-r--r-- 1 root root  44K Sep 10 04:04 centminmod_yumtimes_090915-235712.log
    -rw-r--r-- 1 root root   38 Sep 10 04:04 centminmod_profiletimes_090915-235712.log
    -rw-r--r-- 1 root root    0 Sep 10 04:04 timedhosts_090915-235712.txt
    -rw-r--r-- 1 root root 227K Sep 10 04:05 centminmod_downloadtimes_090915-235712.log
    -rw-r--r-- 1 root root 1.5K Sep 10 04:05 securedtmp.log
    -rw-r--r-- 1 root root   45 Sep 10 04:13 centminmod_libresslinstalltime_090915-235712.log
    -rw-r--r-- 1 root root 1.2K Sep 10 04:14 gcc_native.log
    -rw-r--r-- 1 root root 930K Sep 10 04:21 centminmod_ngxinstalltime_090915-235712.log
    -rw-r--r-- 1 root root   58 Sep 10 04:35 centminmod_phpinstalltime_090915-235712.log
    -rw-r--r-- 1 root root  371 Sep 10 04:35 zendopcache_passfile.txt
    -rw-r--r-- 1 root root 4.3K Sep 10 04:42 centminmod_1.2.3-eva2000.08_090915-235712_yum-log.log
    -rw-r--r-- 1 root root   20 Sep 10 04:42 install.utc.time.log
    -rw-r--r-- 1 root root 2.6M Sep 10 04:42 centminmod_1.2.3-eva2000.08_090915-235712_install.log
    -rw-r--r-- 1 root root   49 Sep 10 04:42 firstyum_installtime_090915-235308.log
    -rw-r--r-- 1 root root 5.7K Sep 10 05:49 centminmod_1.2.3-eva2000.08_100915-054622_nginx_addvhost.log
    -rw-r--r-- 1 root root 3.0K Sep 10 10:12 centminmod_1.2.3-eva2000.08_100915-101159_nginx_addvhost.log
    -rw-r--r-- 1 root root  68K Sep 10 15:36 centminmod_1.2.3-eva2000.08_100915-153058_apc_install.log
    -rw-r--r-- 1 root root 2.9K Sep 14 18:35 centminmod_1.2.3-eva2000.08_140915-183332_nginx_addvhost.log
    -rw-r--r-- 1 root root 2.9K Sep 18 10:08 centminmod_1.2.3-eva2000.08_180915-100743_nginx_addvhost.log
    -rw-r--r-- 1 root root  445 Sep 22 00:20 centminmod_1.2.3-eva2000.08_220915-001902_php_upgrade.log
    -rw-r--r-- 1 root root 3.4K Sep 22 01:59 centminmod_1.2.3-eva2000.08_220915-015739_yuminstall_centos6.log
    -rw-r--r-- 1 root root  56K Sep 22 01:59 centminmod_yumtimes_220915-015739.log
    -rw-r--r-- 1 root root   37 Sep 22 01:59 centminmod_profiletimes_220915-015739.log
    -rw-r--r-- 1 root root    0 Sep 22 01:59 timedhosts_220915-015739.txt
    -rw-r--r-- 1 root root 1.1M Sep 22 02:09 centminmod_1.2.3-eva2000.08_220915-015739_php_upgrade.log
    -rw-r--r-- 1 root root 977K Sep 22 02:28 centminmod_1.2.3-eva2000.08_220915-022408_php_upgrade.log
    -rw-r--r-- 1 root root 2.9K Sep 22 02:52 centminmod_1.2.3-eva2000.08_220915-025147_yuminstall_centos6.log
    -rw-r--r-- 1 root root 125K Sep 22 02:52 centminmod_yumtimes_220915-025147.log
    -rw-r--r-- 1 root root   37 Sep 22 02:52 centminmod_profiletimes_220915-025147.log
    -rw-r--r-- 1 root root    0 Sep 22 02:52 timedhosts_220915-025147.txt
    -rw-r--r-- 1 root root 981K Sep 22 03:08 centminmod_1.2.3-eva2000.08_220915-025147_php_upgrade.log
    -rw-r--r-- 1 root root 979K Sep 22 03:29 centminmod_1.2.3-eva2000.08_220915-032610_php_upgrade.log
    -rw-r--r-- 1 root root  189 Sep 22 03:41 centminmod_1.2.3-eva2000.08_220915-034135_apc_reinstall.log
    -rw-r--r-- 1 root root  45K Sep 22 03:42 centminmod_1.2.3-eva2000.08_220915-034135_apc_install.log
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,163
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    4:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you need to post contents of centminmod_1.2.3-eva2000.08_220915-032610_php_upgrade.log copy and paste log contents and post to pastebin.com or gist.github.com for sharing the link

    FYI APC Cache doesn't really work with PHP 5.6. So best to use Zend Opcache instead
     
  5. Lil.Tee

    Lil.Tee New Member

    24
    1
    3
    Sep 11, 2015
    Ratings:
    +1
    Local Time:
    1:55 PM
    1.11.1
    MariaDB 10
  6. eva2000

    eva2000 Administrator Staff Member

    55,163
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    4:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  7. Lil.Tee

    Lil.Tee New Member

    24
    1
    3
    Sep 11, 2015
    Ratings:
    +1
    Local Time:
    1:55 PM
    1.11.1
    MariaDB 10
  8. eva2000

    eva2000 Administrator Staff Member

    55,163
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    4:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    how much memory you have ? looks like php aborts compilation due to lack of memory or something
    Code:
    gcc: Internal error: Killed (program cc1)
    Please submit a full bug report.
    See <http://bugzilla.redhat.com/bugzilla> for instructions.
    make: *** [ext/date/lib/parse_tz.lo] Error 1
    make: *** Waiting for unfinished jobs....
    gcc: Internal error: Killed (program cc1)
    Please submit a full bug report.
    See <http://bugzilla.redhat.com/bugzilla> for instructions.
    make: *** [ext/date/lib/parse_date.lo] Error 1
    
    Code:
    /bin/sh /svr-setup/php-5.6.13/fpm-build/libtool --silent --preserve-dup-deps --mode=compile ccache /usr/bin/gcc -DHAVE_CONFIG_H -I/svr-setup/php-5.6.13/ext/pcre/pcrelib -Iext/pcre/ -I/svr-setup/php-5.6.13/ext/pcre/ -DPHP_ATOM_INC -I/svr-setup/php-5.6.13/fpm-build/include -I/svr-setup/php-5.6.13/fpm-build/main -I/svr-setup/php-5.6.13 -I/svr-setup/php-5.6.13/fpm-build/ext/date/lib -I/svr-setup/php-5.6.13/ext/date/lib -I/svr-setup/php-5.6.13/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/enchant -I/usr/X11 -I/usr/include/freetype2 -I/usr/include/imap -I/svr-setup/php-5.6.13/ext/mbstring/oniguruma -I/svr-setup/php-5.6.13/fpm-build/ext/mbstring/oniguruma -I/svr-setup/php-5.6.13/ext/mbstring/libmbfl -I/svr-setup/php-5.6.13/fpm-build/ext/mbstring/libmbfl -I/svr-setup/php-5.6.13/ext/mbstring/libmbfl/mbfl -I/svr-setup/php-5.6.13/fpm-build/ext/mbstring/libmbfl/mbfl -I/svr-setup/php-5.6.13/ext/sqlite3/libsqlite -I/usr/include/pspell -I/svr-setup/php-5.6.13/ext/zip/lib -I/svr-setup/php-5.6.13/fpm-build/TSRM -I/svr-setup/php-5.6.13/fpm-build/Zend -I/svr-setup/php-5.6.13/main -I/svr-setup/php-5.6.13/Zend -I/svr-setup/php-5.6.13/TSRM -I/svr-setup/php-5.6.13/fpm-build/    -I/usr/include -g -O2 -fvisibility=hidden  -c /svr-setup/php-5.6.13/ext/pcre/pcrelib/pcre_exec.c -o ext/pcre/pcrelib/pcre_exec.lo
    make: *** [ext/date/lib/parse_date.lo] Error 1
    make: *** Waiting for unfinished jobs....
    
    real    1m38.824s
    user    1m23.943s
    sys    0m10.056s
    *************************************************
    
    Tue Sep 22 02:09:23 UTC 2015
    Error: 2, PHP make failed (1.2.3-eva2000.08)
    
    *************************************************
    not ideal but you can test the theory out by shutting down memcached and nginx and php-fpm services prior to running centmin.sh menu option 5
     
  9. Lil.Tee

    Lil.Tee New Member

    24
    1
    3
    Sep 11, 2015
    Ratings:
    +1
    Local Time:
    1:55 PM
    1.11.1
    MariaDB 10
    Hello, My memory RAM is 512 MB