Learn about Centmin Mod LEMP Stack today
Register Now

Upgrade PHP-FPM Centmin Mod .09 beta branch Testing

Discussion in 'Beta release code' started by eva2000, Aug 12, 2015.

Tags:
  1. duydangle

    duydangle Member

    43
    7
    8
    May 30, 2014
    Ratings:
    +10
    Local Time:
    5:42 AM
    1.9.9
    10
    Just updated the code base of .09beta01, recompile nginx to 1.9.11 and cannot start nginx.

    Error
    Code:
    nginx: [emerg] unknown directive "geoip_country" in /usr/local/nginx/conf/geoip.conf:2
    
    I have to change this line
    Code:
    NGXDYNAMIC_GEOIP='n'
    And nginx can start.
    OS: Centos 6
     
  2. eva2000

    eva2000 Administrator Staff Member

    42,086
    9,504
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,623
    Local Time:
    8:42 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    did you run centmin.sh menu option 4 in same centmin.sh session as update via centmin.sh menu option 23 submenu option 2 ? you need to exit centmin.sh after centmin.sh menu option 23 submenu option 2 and re-run centmin.sh menu otpion 4 from new session for changes to take affect
     
  3. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    11:42 PM
    1.9.12
    10.0.23
    Is it 'safe' to upgrade 09beta1 with all your newest patches and only re-compile nginx to 1.9.11 and not touch MariaDB. So only nginx upgrade and wait with MariaDB 10.1 to another day..
     
  4. eva2000

    eva2000 Administrator Staff Member

    42,086
    9,504
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,623
    Local Time:
    8:42 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    like nginx and php-fpm updates, 123.09beta01 won't auto upgrade existing Centmin Mod installs to MariaDB 10.1 - it's part 2 of below

    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.
     
    Last edited: Feb 15, 2016
  5. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    11:42 PM
    1.9.12
    10.0.23
    Ahh - Sorry I had to disturb you and others with that question - maybe I'm to old to remember stuff now :whistle: - but thanks for reminding me again. Will upgrade.
     
    • Like Like x 1
  6. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    11:42 PM
    1.9.12
    10.0.23
    Hi @eva2000 - did menu options 23, 2, got your patches, exit back out - executed centmin again - and did one more test for new patches and with exit out I got a line 3 messages about h: command not found..

    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.09 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2/5.5 & 10.x Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 23
    --------------------------------------------------------
    
    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 2
    --------------------------------------------------------
    
    Updating Current Centmin Mod code branch via git
            cd /usr/local/src/centminmod
            git stash
            git pull
            chmod +x centmin.sh
    No local changes to save
    Already up-to-date.
    
    ##################### IMPORTANT #####################
    To complete update exit centmin.sh by continually
    exiting each submenu option until you are back at
    cmd prompt and re-run command to change into directory:
      cd /usr/local/src/centminmod
    before invoking centmin.sh again
    ##################### IMPORTANT #####################
    
    
    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 4
    --------------------------------------------------------
    /usr/bin/centmin: line 3: h: command not found
    [[email protected] ~]#
    
     
    • Informative Informative x 1
  7. eva2000

    eva2000 Administrator Staff Member

    42,086
    9,504
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,623
    Local Time:
    8:42 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    could be from previous cm code, try again with menu options 23 submenu 2, + exit back out
     
  8. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    11:42 PM
    1.9.12
    10.0.23
    Code:
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 23
    --------------------------------------------------------
    
    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 2
    --------------------------------------------------------
    
    Updating Current Centmin Mod code branch via git
            cd /usr/local/src/centminmod
            git stash
            git pull
            chmod +x centmin.sh
    No local changes to save
    Already up-to-date.
    
    ##################### IMPORTANT #####################
    To complete update exit centmin.sh by continually
    exiting each submenu option until you are back at
    cmd prompt and re-run command to change into directory:
      cd /usr/local/src/centminmod
    before invoking centmin.sh again
    ##################### IMPORTANT #####################
    
    
    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 4
    --------------------------------------------------------
    [[email protected] ~]#
    
    Is it per feature it exit out of script and not back to main menu? - I did not get another h command not found ..
     
    • Informative Informative x 1
  9. eva2000

    eva2000 Administrator Staff Member

    42,086
    9,504
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,623
    Local Time:
    8:42 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  10. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    11:42 PM
    1.9.12
    10.0.23
    What on earth? - Another one missing :stinkyfeet: ..

    So - I tried compile nginx - and one of the last output was this:

    Code:
    make[1]: Leaving directory `/svr-setup/nginx-1.9.11'
    
    real    1m15.227s
    user    1m47.927s
    sys     0m32.500s
    
    strip nginx binary...
    -rwxr-xr-x 1 root root 30M Feb 15 14:52 objs/nginx
    -rwxr-xr-x 1 root root 14M Feb 15 14:52 objs/nginx
    
    
    Mon Feb 15 14:52:22 CET 2016
    Success: Nginx make ok
    
    nginx: [emerg] unknown directive "load_module" in /usr/local/nginx/conf/dynamic-modules.conf:1
    
    What I have in that file is this:

    Code:
    load_module "modules/ngx_http_image_filter_module.so";
    load_module "modules/ngx_http_geoip_module.so";
    load_module "modules/ngx_stream_module.so";
    
    And the nginx server is still running..

    nginx -V gives the following output:

    Code:
    nginx version: nginx/1.9.11
    built by clang 3.4.2 (tags/RELEASE_34/dot2-final)
    built with LibreSSL 2.2.6
    TLS SNI support enabled
    configure arguments: --with-ld-opt='-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib' --with-cc-opt='-m64 -mtune=native -mfpmath=sse -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-sign-compare -Wno-string-plus-int -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-const-variable -Wno-conditional-uninitialized -Wno-mismatched-tags -Wno-c++11-extensions -Wno-sometimes-uninitialized -Wno-parentheses-equality -Wno-tautological-compare -Wno-self-assign -Wno-deprecated-register -Wno-deprecated -Wno-invalid-source-encoding -Wno-pointer-sign -Wno-parentheses -Wno-enum-conversion -Wno-c++11-compat-deprecated-writable-strings -Wno-write-strings' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-http_stub_status_module --with-http_secure_link_module --with-openssl-opt=enable-tlsext --add-module=../nginx-module-vts --with-libatomic --with-threads --with-stream=dynamic --with-stream_ssl_module --with-http_gzip_static_module --add-module=../ngx_brotli --add-module=../ngx_pagespeed-release-1.10.33.4-beta --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module=dynamic --with-http_realip_module --add-module=../nginx-accesskey-2.0.3 --add-module=../nginx-http-concat-master --add-module=../ngx-fancyindex-0.3.6 --add-module=../ngx_cache_purge-2.3 --add-module=../ngx_devel_kit-0.2.19 --add-module=../set-misc-nginx-module-0.29 --add-module=../echo-nginx-module-0.58 --add-module=../redis2-nginx-module-0.12 --add-module=../ngx_http_redis-0.3.7 --add-module=../nginx_upstream_check_module-0.3.0 --add-module=../openresty-memc-nginx-module-4f6f78f --add-module=../openresty-srcache-nginx-module-ffa9ab7 --add-module=../headers-more-nginx-module-0.29 --with-pcre=../pcre-8.38 --with-pcre-jit --with-http_ssl_module --with-http_v2_module --with-openssl=../libressl-2.2.6
    
     
  11. eva2000

    eva2000 Administrator Staff Member

    42,086
    9,504
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,623
    Local Time:
    8:42 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    normal as it's before make install just after 'make ok' so nginx isn't actually finished installing

    as long as nginx restarts at the end it's ok

    edit: will hide that message :)
     
    Last edited: Feb 16, 2016
  12. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    11:42 PM
    1.9.12
    10.0.23
    That is something I like to hear - you are doing it great for us - thank you so very much.. Will update my profile now with 1.9.11 info..
     
  13. eva2000

    eva2000 Administrator Staff Member

    42,086
    9,504
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,623
    Local Time:
    8:42 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    latest 123.09beta01 now hides that error
     
  14. ethanpil

    ethanpil Active Member

    170
    53
    28
    Nov 8, 2015
    Ratings:
    +99
    Local Time:
    8:42 AM
    Finally got it to install properly on Linode. 2GB Linode in Fremont, CA Centos 7

    Added a WP virtual host, ran csfcf.sh and all is well. Kudos.

    Code:
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 191.0968 seconds
    Total YUM Time: 271.526243583 seconds
    Total YUM + Source Download Time: 289.6936
    Total Nginx First Time Install Time: 270.7566
    Total PHP First Time Install Time: 588.2893
    Download Zip From Github Time: 3.0055
    Total Time Other eg. source compiles: 345.2907
    Total Centmin Mod Install Time: 1494.0302
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 1688.1325 seconds
    ---------------------------------------------------------------------------
    
     
    • Like Like x 1
    • Winner Winner x 1
  15. eva2000

    eva2000 Administrator Staff Member

    42,086
    9,504
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,623
    Local Time:
    8:42 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    excellent thanks for confirmation :D
     
  16. eva2000

    eva2000 Administrator Staff Member

    42,086
    9,504
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,623
    Local Time:
    8:42 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    a few tweaks to speed up installs.. on 1GB OpenVZ VPS and CentOS 6.7 64bit minimal
    Code:
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 78.6319 seconds
    Total YUM Time: 40.250426674 seconds
    Total YUM + Source Download Time: 57.5079
    Total Nginx First Time Install Time: 102.8312
    Total PHP First Time Install Time: 187.7976
    Download Zip From Github Time: 29.5305
    Total Time Other eg. source compiles: 203.0391
    Total Centmin Mod Install Time: 551.1758
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 659.3382 seconds
    ---------------------------------------------------------------------------
     
    • Like Like x 1
  17. eva2000

    eva2000 Administrator Staff Member

    42,086
    9,504
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,623
    Local Time:
    8:42 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    when you run centmin.sh and there's yum updates available, a message will now appear in 123.09beta01 alerting user as such

    Code:
    -------------------------------------------------------------
      New YUM Updates available for host hostname.domain.com
    -------------------------------------------------------------
      To list available YUM Updates type:
    -------------------------------------------------------------
      yum list updates --disableplugin=priorities --enablerepo=remi
    
    -------------------------------------------------------------
      To updates type:
    -------------------------------------------------------------
      yum update --disableplugin=priorities --enablerepo=remi
    
     
    Last edited: Feb 16, 2016
    • Like Like x 3
  18. rdan

    rdan Well-Known Member

    4,715
    1,138
    113
    May 25, 2014
    Ratings:
    +1,697
    Local Time:
    6:42 AM
    Mainline
    10.2
    I hope this will be added on centmin exit?
    Since running centmin adds some few seconds before I can use it when I need to.
     
    • Like Like x 1
    • Agree Agree x 1
  19. eva2000

    eva2000 Administrator Staff Member

    42,086
    9,504
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,623
    Local Time:
    8:42 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    it's at start of centmin.sh but guess it makes sense to move it to centmin.sh exit where message is last thing folks see

    just moved it :D
     
    • Like Like x 2
    • Winner Winner x 1
  20. duydangle

    duydangle Member

    43
    7
    8
    May 30, 2014
    Ratings:
    +10
    Local Time:
    5:42 AM
    1.9.9
    10
    Yes I always exit and run centmin.sh again when update.
     
    • Informative Informative x 1