Learn about Centmin Mod LEMP Stack today
Become a Member

Nginx can not upgrade nginx to 1.9.15

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by arlon, Jun 2, 2016.

  1. arlon

    arlon Member

    73
    5
    8
    Feb 20, 2016
    Ratings:
    +10
    Local Time:
    12:05 AM
    1.10.1
    10.0
    my current version (from the first centminmod instalation)
    nginx version: nginx/1.9.11
    built by clang 3.4.2 (tags/RELEASE_34/dot2-final)
    built with LibreSSL 2.2.6

    and i want to upgrade my nginx to 1.9.15, i have chosen option 4 and choose nginx version 1.9.15, but after upgrade done, i don't see the different and my nginx is not upgraded, my version still
    nginx version: nginx/1.9.11
    built by clang 3.4.2 (tags/RELEASE_34/dot2-final)
    built with LibreSSL 2.2.6

    how to upgrade nginx properly?
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,177
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    3:05 AM
    Nginx 1.13.x
    MariaDB 5.5
    To troubleshoot, you need to check the the nginx 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 what's output of
    Code (Text):
    nginx -t

    when you run centmin.sh menu option 4 there's a nginx upgrade log timestamped at /root/centminlogs

    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

    Ensure to update Centmin Mod first to cover latest fixes then run centmin.sh menu option 4

    Upgrading Centmin Mod Code to Latest Version



    Getting Started Guide step 19 outlines also how to keep Centmin Mod code updated or how to switch version branches.

    Centmin Mod LEMP stack's script code is constantly updated for improvements, bug fixes and security fixes so keeping the Centmin Mod code up to date is important. With Centmin Mod 1.2.3-eva2000.08) (123.08stable) and higher releases, a newly added centmin.sh menu option 23 allows much easier code updates and version branch swicthing via Git backed environment you can setup. For full details read the following links:
    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code outlined at Upgrade Centmin Mod. 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. You can easily update within a Centmin Mod version branch or switch version branches via centmin.sh menu option 23 outlined here.
    2. Upgrade software that Centmin Mod installed or manages. For this part following outline at How to upgrade Centmin Mod software installed on your server.
    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. arlon

    arlon Member

    73
    5
    8
    Feb 20, 2016
    Ratings:
    +10
    Local Time:
    12:05 AM
    1.10.1
    10.0
    Last edited: Jun 2, 2016
  4. eva2000

    eva2000 Administrator Staff Member

    30,177
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    3:05 AM
    Nginx 1.13.x
    MariaDB 5.5
    you're using outdated centmin mod build as libressl 2.2 branch does not work with nginx 1.9.15
    Code (Text):
    make[1]: *** [../libressl-2.2.6/.openssl/include/openssl/ssl.h] Error 2
    make[1]: Leaving directory `/svr-setup/nginx-1.9.15'
    make: *** [install] Error 2
    

    you need to update to latest centmin mod code for your branch which uses libressl 2.3 branch for compatibility as outlined above via centmin.sh menu option 23 submenu option 1/2
    FYI, 123.08stable and 123.09beta01 were updated March 25, 2016 for the fix Install - Centmin Mod 1.2.3-eva2000.08 how to install & update | Page 3 | Centmin Mod Community
     
  5. arlon

    arlon Member

    73
    5
    8
    Feb 20, 2016
    Ratings:
    +10
    Local Time:
    12:05 AM
    1.10.1
    10.0
    solved now
    thanks
     
    Last edited: Jun 2, 2016
    • Like Like x 1
  6. eva2000

    eva2000 Administrator Staff Member

    30,177
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    3:05 AM
    Nginx 1.13.x
    MariaDB 5.5
    glad to hear :)