Want to subscribe to topics you're interested in?
Become a Member

Install Install not worked fully?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Liam W, Jul 6, 2016.

  1. Liam W

    Liam W Member

    57
    16
    8
    Jun 26, 2014
    Barrow-in-Furness, Cumbria, England
    Ratings:
    +20
    Local Time:
    7:29 AM
    nginx/1.9.11
    10.1.11
    I just installed (or at least tried to install) centmin onto a new server, however ngxrestart just gave me this error:

    /etc/init.d/nginx: line 71: /usr/local/sbin/nginx: No such file or directory

    Any idea what gives?

    Liam
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,170
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    4:29 PM
    Nginx 1.13.x
    MariaDB 5.5
    You'll need to post on the forums with the following info
    • Server or VPS details ? XEN, KVM, OpenVZ, VMWare or dedicated server ? OS ? CentOS 6.7 or 7.2 ? 32bit or 64bit ?
    • What version of Centmin Mod ? .07 stable or 08 stable or .09 beta01 or another branch version ?
    • Was it fresh install or upgrade ?
    • Method of install ? Via centmin.sh menu option 1, Git install or curl one liner install as outlined at centminmod.com/download.html ?
    • 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.

    Troubleshooting Initial Install



    To troubleshoot initial installation, you need to check the initial install 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

    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. Liam W

    Liam W Member

    57
    16
    8
    Jun 26, 2014
    Barrow-in-Furness, Cumbria, England
    Ratings:
    +20
    Local Time:
    7:29 AM
    nginx/1.9.11
    10.1.11
    Heh, using my own add-on against me ;)

    I'm just trying something (working off a theory...). I'll get back to you if my theory doesn't pan out.

    Liam
     
    • Like Like x 1
  4. eva2000

    eva2000 Administrator Staff Member

    30,170
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    4:29 PM
    Nginx 1.13.x
    MariaDB 5.5
    Looks like problem in 123.08stable initial install due to nginx 1.11.2 changes to md5 and incompatibility with ngx_http_accesskey_module. Strange didn't have problems with Centmin Mod 123.09beta01 though as forums here and centminmod.com cluster all running nginx 1.11.2 fine
    Code (Text):
    make[1]: Entering directory `/svr-setup/nginx-1.11.2'
    /usr/bin/clang -ferror-limit=0 -c -pipe  -O -Wall -Wextra -Wpointer-arith -Wconditional-uninitialized -Wno-unused-parameter -Werror -g -m64 -mtune=native -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 -DNDK_SET_VAR -DNDK_UPSTREAM_LIST  -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../ngx_devel_kit-0.3.0/objs -I objs/addon/ndk -I ../nginx_upstream_check_module-0.3.0 -I ../pcre-8.38 -I ../libressl-2.3.6/.openssl/include -I objs -I src/http -I src/http/modules -I src/http/v2 -I ../ngx_devel_kit-0.3.0/src -I ../ngx_devel_kit-0.3.0/src -I ../ngx_devel_kit-0.3.0/objs -I objs/addon/ndk \
            -o objs/addon/nginx-accesskey-2.0.3/ngx_http_accesskey_module.o \
            ../nginx-accesskey-2.0.3/ngx_http_accesskey_module.c
    ../nginx-accesskey-2.0.3/ngx_http_accesskey_module.c:14:10: fatal error: 'md5.h' file not found
    #include <md5.h>
             ^
    1 error generated.
    make[1]: *** [objs/addon/nginx-accesskey-2.0.3/ngx_http_accesskey_module.o] Error 1
    make[1]: Leaving directory `/svr-setup/nginx-1.11.2'
    make: *** [install] Error 2


    ah i see why, centmin mod 123.09beta01 has added finer grain control over nginx modules with NGINX_ACCESSKEY='n' variable and that is disabled by default while 123.08stable doesn't have this variable support and defaults to enabled right now
     
    Last edited: Jul 6, 2016
  5. eva2000

    eva2000 Administrator Staff Member

    30,170
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    4:29 PM
    Nginx 1.13.x
    MariaDB 5.5