Learn about Centmin Mod LEMP Stack today
Register Now

Install Nginx Installation failed

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Riky Sunandi, May 17, 2015.

  1. Riky Sunandi

    Riky Sunandi New Member

    12
    2
    3
    May 17, 2015
    Ratings:
    +2
    Local Time:
    12:23 PM
    1.7.12
    I just moved my thread from Introduction to here, after @eva2000 told me about this.. :) thank you eva


    I have install centmin in my ramnode VPS, with spec:
    Ramnode KVM 512Mb, Disk 15Gb
    OS: CentOS 6.5 x86-64 Minimal
    Centmin-ver: 1.2.3-eva2000.07

    but in post installation, i got this messages:

    --------------------------------------------------------
    Check Nginx Version:
    --------------------------------------------------------
    inc/centminfinish.inc: line 26: nginx: command not found


    anyone can help me?

    sorry for my poor english, thank you :D

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,853
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    3:23 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    • What version of Centmin Mod ? .07 stable or .08 beta02 ? 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.

    Troubleshooting Initial Install



    To troubleshoot initial installation, you need to check the initial install log at /root/centminlogs. You can see full details at How to troubleshoot Centmin Mod initial install issues | Centmin Mod Community

    Upgrading Centmin Mod Code to Latest Version



    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code which you downloaded via zip file or via github. 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 is best.
    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.

    There's 3 ways you can upgrade your .07 stable or .08 beta02 code you have on your server. They are outlined in respective upgrade sections of the first posts linked below:
    1. For .07 stable 1st post see section on upgrades Install - Centmin Mod 1.2.3-eva2000.07 stable install
    2. For .08 beta 02 1st post see section on upgrade to latest code CentOS 7.x - How to help test .08 CentOS 7 Betas with Github code ?
    3. For either .07 stable or .08 beta02 via github command line Upgrade - Working with git command line for updating Centmin Mod local copies
    Github commit log for
     
  3. Riky Sunandi

    Riky Sunandi New Member

    12
    2
    3
    May 17, 2015
    Ratings:
    +2
    Local Time:
    12:23 PM
    1.7.12
    I try to install centmin mod .07 stable version. Its fresh install, i try in few hours ago...

    I have try both of 3 methods to install Centmin Mod
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,853
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    3:23 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. Riky Sunandi

    Riky Sunandi New Member

    12
    2
    3
    May 17, 2015
    Ratings:
    +2
    Local Time:
    12:23 PM
    1.7.12
  6. eva2000

    eva2000 Administrator Staff Member

    53,853
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    3:23 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    You seem to be using older version of .07 stable as Nginx 1.7.9 was trying to be installed, latest .07 stable has Nginx 1.7.12 - you can bookmark, watch/subscribe this thread for latest updated .07 stable news Install - Centmin Mod 1.2.3-eva2000.07 stable install | Centmin Mod Community

    Code:
    make[1]: *** [objs/addon/src/ngx_pagespeed.o] Error 1
    make[1]: Leaving directory `/svr-setup/nginx-1.7.9'
    make: *** [install] Error 2
     
  7. Riky Sunandi

    Riky Sunandi New Member

    12
    2
    3
    May 17, 2015
    Ratings:
    +2
    Local Time:
    12:23 PM
    1.7.12
    Ohh yup, for the first time, i set default package of centmin with nginx 1.7.12.. i install it, and then showing inc/centminfinish.inc: line 26: nginx: command not found

    Then i reinstall my vps, try install centmin again, but i edit centmin.sh and change version of nginx from 1.7.12 to 1.7.9 because i see changelog centmin that mention nginx 1.7.9 version.. but its still showin inc/centminfinish.inc: line 26: nginx: command not found ... so i create thread in this forum sir..
     
  8. eva2000

    eva2000 Administrator Staff Member

    53,853
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    3:23 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    k let me try a test .07 install could be issue with ngx_pagespeed too
    Code:
    make[1]: *** [objs/addon/src/ngx_pagespeed.o] Error 1
     
  9. Riky Sunandi

    Riky Sunandi New Member

    12
    2
    3
    May 17, 2015
    Ratings:
    +2
    Local Time:
    12:23 PM
    1.7.12
    Ok sir, thank you for your guidance... i wait the result..

    sorry for my poor english
     
  10. Riky Sunandi

    Riky Sunandi New Member

    12
    2
    3
    May 17, 2015
    Ratings:
    +2
    Local Time:
    12:23 PM
    1.7.12
    Hot about your installation test?
     
  11. eva2000

    eva2000 Administrator Staff Member

    53,853
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    3:23 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  12. Riky Sunandi

    Riky Sunandi New Member

    12
    2
    3
    May 17, 2015
    Ratings:
    +2
    Local Time:
    12:23 PM
    1.7.12
    Im sorry eva, so what should i do? If i try instal again with common ways? or any custom setting ? thanks

    like this one?
    NGINX_PAGESPEEDGITMASTER=n

     
  13. eva2000

    eva2000 Administrator Staff Member

    53,853
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    3:23 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    do following

    1. reinstall CentOS 6.6 fresh OS
    2. download latest .07 stable zip again as per Install - Centmin Mod 1.2.3-eva2000.07 stable install | Centmin Mod Community
    3. install .07 stable via centmin.sh menu option 1

    or

    for existing install

    1. download latest .07 stable zip again as per to replace old .07 stable in /usr/local/src/*
    2. recompile nginx via centmin.sh menu option 4
     
  14. Riky Sunandi

    Riky Sunandi New Member

    12
    2
    3
    May 17, 2015
    Ratings:
    +2
    Local Time:
    12:23 PM
    1.7.12
    Ok, i will try now.. thank u so much
     
  15. Riky Sunandi

    Riky Sunandi New Member

    12
    2
    3
    May 17, 2015
    Ratings:
    +2
    Local Time:
    12:23 PM
    1.7.12
    weldone, i have finished installation properly.. thank you so much eva

    but, next question is If NGINX_PAGESPEEDGITMASTER is installed?
     
  16. eva2000

    eva2000 Administrator Staff Member

    53,853
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    3:23 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Glad to hear :)

    NGINX_PAGESPEEDGITMASTER variable in centmin.sh determines where centmin mod downloads ngx_pagespeed source code from

    when set to = y it downloads from master branch at pagespeed/ngx_pagespeed · GitHub

    when set to = n it downloads from release version specified by centmin.sh variables called NGXPGSPEED_VER='1.9.32.3-beta' and NGINX_PAGESPEEDPSOL_VER='1.9.32.3' with source code at Releases · pagespeed/ngx_pagespeed · GitHub

    so updated fixed uses release version code and not master
     
  17. Riky Sunandi

    Riky Sunandi New Member

    12
    2
    3
    May 17, 2015
    Ratings:
    +2
    Local Time:
    12:23 PM
    1.7.12
    Oalahh (Indonesian slang) magic master!! so thank you very much over and over again for you eva...

    I asked you for permit me to use your magic centmin mod..:)
     
  18. eva2000

    eva2000 Administrator Staff Member

    53,853
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    3:23 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    You're welcome

    here's some threads to read, pages to bookmark and threads to watch/subscribe to get to know Centmin Mod: