Welcome to Centmin Mod Community
Become a Member

Nginx Nginx failed install.

Discussion in 'Install & Upgrades or Pre-Install Questions' started by tdubs, May 18, 2015.

Tags:
  1. tdubs

    tdubs Member

    83
    12
    8
    Apr 10, 2015
    Ratings:
    +15
    Local Time:
    12:48 PM
    1.7.12
    10.0.17
    Hello,

    I am freshly installing Centmin Mod on another server of mine (CentOS 6.5 w/ 4GB RAM) and I ran across a problem when restarting Nginx. I didn't have this issue previously when installing it on another server, but now I've run across it on my second on. Not sure if I missed a step or something. I did try Option #4 and upgraded to Nginx 1.8.x, but that didn't help either.

    Code:
    [root@server ~]# ngxrestart
    /etc/init.d/nginx: line 71: /usr/local/sbin/nginx: No such file or directory
    
    Install Log: https://dl.dropboxusercontent.com/u/16008396/centminmod_1.2.3-eva2000.07_170515-211114_install.log

    Thanks!
     
    Last edited: May 18, 2015
  2. eva2000

    eva2000 Administrator Staff Member

    30,166
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    12:48 PM
    Nginx 1.13.x
    MariaDB 5.5
  3. tdubs

    tdubs Member

    83
    12
    8
    Apr 10, 2015
    Ratings:
    +15
    Local Time:
    12:48 PM
    1.7.12
    10.0.17
    Not sure what I'm doing wrong. I ran the steps to install it as listed by you after doing a fresh OS Reinstall...

    Code:
    yum -y install bc wget unzip nano yum-plugin-fastestmirror
    cd /usr/local/src
    wget http://centminmod.com/download/centmin-v1.2.3-eva2000.07.zip
    Code:
    unzip centmin-v1.2.3-eva2000.07.zip
    cd centmin-v1.2.3mod
    chmod +x centmin.sh
    Code:
    yum clean all
    Code:
    ./centmin.sh
    Ran Option #1. Once it installed, I used Option #2 and added a Nginx vhost. Then I did Option #5 and updated to PHP 5.6.9. After that, I tried restarting Nginx to see if it fixed, and nothing. So I ran Option #21 to see if that would help, and still no avail.
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,166
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    12:48 PM
    Nginx 1.13.x
    MariaDB 5.5
    What type of server is it ? dedicated ? VPS ? Xen, KVM, OpenVZ ?

    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

    so what does the new install log say for your latest attempt ?
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,166
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    12:48 PM
    Nginx 1.13.x
    MariaDB 5.5
    Also check your centmin.sh and see if NGINX_PAGESPEEDGITMASTER=n is set to =n
     
  6. tdubs

    tdubs Member

    83
    12
    8
    Apr 10, 2015
    Ratings:
    +15
    Local Time:
    12:48 PM
    1.7.12
    10.0.17
  7. eva2000

    eva2000 Administrator Staff Member

    30,166
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    12:48 PM
    Nginx 1.13.x
    MariaDB 5.5
    when you download latest .07 zip, NGINX_PAGESPEEDGITMASTER=n should be the default.. if it isn't then you downloaded an older .07 zip

    you seem to be still failing on ngx_pagespeed and that would be expected if you had set NGINX_PAGESPEEDGITMASTER=y. The updated .07 zip should have NGINX_PAGESPEEDGITMASTER=n by default

    Code:
            ../ngx_pagespeed-release-1.9.32.3-beta/src/ngx_pagespeed.cc
    ../ngx_pagespeed-release-1.9.32.3-beta/src/ngx_pagespeed.cc: In function 'void net_instaweb::<unnamed>::ps_release_request_context(void*)':
    ../ngx_pagespeed-release-1.9.32.3-beta/src/ngx_pagespeed.cc:1713: error: no matching function for call to 'net_instaweb::InPlaceResourceRecorder::DoneAndSetHeaders(NULL, bool)'
    ../ngx_pagespeed-release-1.9.32.3-beta/psol/include/net/instaweb/system/public/in_place_resource_recorder.h:115: note: candidates are: void net_instaweb::InPlaceResourceRecorder::DoneAndSetHeaders(net_instaweb::ResponseHeaders*)
    ../ngx_pagespeed-release-1.9.32.3-beta/src/ngx_pagespeed.cc: In function 'ngx_int_t net_instaweb::<unnamed>::in_place::ps_in_place_body_filter(ngx_http_request_t*, ngx_chain_t*)':
    ../ngx_pagespeed-release-1.9.32.3-beta/src/ngx_pagespeed.cc:2511: error: no matching function for call to 'net_instaweb::InPlaceResourceRecorder::DoneAndSetHeaders(net_instaweb::ResponseHeaders*, unsigned char:1&)'
    ../ngx_pagespeed-release-1.9.32.3-beta/psol/include/net/instaweb/system/public/in_place_resource_recorder.h:115: note: candidates are: void net_instaweb::InPlaceResourceRecorder::DoneAndSetHeaders(net_instaweb::ResponseHeaders*)
    make[1]: *** [objs/addon/src/ngx_pagespeed.o] Error 1
    make[1]: Leaving directory `/svr-setup/nginx-1.7.12'
    make: *** [install] Error 2
    
    real    1m45.048s
    user    1m10.274s
    sys    0m33.766s
    egrep: /usr/local/nginx/conf/mime.types: No such file or directory
    grep: /usr/local/nginx/conf/mime.types: No such file or directory
    grep: /usr/local/nginx/conf/mime.types: No such file or directory
    grep: /usr/local/nginx/conf/mime.types: No such file or directory
    grep: /usr/local/nginx/conf/mime.types: No such file or directory
     
  8. eva2000

    eva2000 Administrator Staff Member

    30,166
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    12:48 PM
    Nginx 1.13.x
    MariaDB 5.5
    okay i see the problem, downloaded .07 zip on some servers has incorrectly NGINX_PAGESPEEDGITMASTER=y instead of NGINX_PAGESPEEDGITMASTER=n

    centminmod.com is load balanced across 5+ VPS servers, so I might have not properly synced one of them.. give me a sec to check
     
  9. eva2000

    eva2000 Administrator Staff Member

    30,166
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    12:48 PM
    Nginx 1.13.x
    MariaDB 5.5
    okay i fixed the .07 download zip now for all VPS cluster servers :D

    Sorry for the mess up :oops:
     
    • Like Like x 1
  10. tdubs

    tdubs Member

    83
    12
    8
    Apr 10, 2015
    Ratings:
    +15
    Local Time:
    12:48 PM
    1.7.12
    10.0.17
    Worked. Thanks!
     
    • Like Like x 1
  11. eva2000

    eva2000 Administrator Staff Member

    30,166
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    12:48 PM
    Nginx 1.13.x
    MariaDB 5.5
    Glad to hear.. bit of human error and a few fixes later :)
     
    • Like Like x 1