Welcome to Centmin Mod Community
Become a Member

Nginx Problem Install

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by KinderOvO, Jan 25, 2015.

Tags:
  1. KinderOvO

    KinderOvO Member

    54
    1
    8
    Jan 13, 2015
    Ratings:
    +1
    Local Time:
    12:33 PM
    1.4
    10
    After install Centmin error on start services.
    /etc/init.d/nginx: line 70: 15125 Segmentation fault (core dumped) $nginx -t -c $NGINX_CONF_FILE
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,933
    6,911
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,407
    Local Time:
    12:33 PM
    Nginx 1.13.x
    MariaDB 5.5
    Last edited: Jan 25, 2015
  3. KinderOvO

    KinderOvO Member

    54
    1
    8
    Jan 13, 2015
    Ratings:
    +1
    Local Time:
    12:33 PM
    1.4
    10
    Code:
    You have new mail in /var/spool/mail/root
    [root@teste centmin-v1.2.3mod]# service nginx restart
    /etc/init.d/nginx: line 70:   316 Segmentation fault      (core dumped) $nginx -t -c $NGINX_CONF_FILE
    [root@teste centmin-v1.2.3mod]# nginx -V
    nginx version: nginx/1.7.9
    built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
    TLS SNI support enabled
    configure arguments: --with-cc-opt='-I/svr-setup/staticlibssl/include -I/usr/include' --with-ld-opt='-L/svr-setup/staticlibssl/lib -Wl,-rpath -lssl -lcrypto -ldl -lz' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module --with-http_secure_link_module --with-http_flv_module --with-http_realip_module --with-openssl-opt=enable-tlsext --add-module=../ngx-fancyindex-ngx-fancyindex --add-module=../ngx_cache_purge-2.3 --add-module=../headers-more-nginx-module-0.25 --add-module=../nginx-accesskey-2.0.3 --add-module=../nginx-http-concat-master --with-http_dav_module --add-module=../nginx-dav-ext-module-0.0.3 --with-openssl=../openssl-1.0.2 --with-libatomic --with-pcre=../pcre-8.35 --with-pcre-jit --with-http_spdy_module --add-module=../ngx_pagespeed-release-1.9.32.3-beta
    [root@teste centmin-v1.2.3mod]#
    
    tested 2 dedicated servers, similar error.
    32gb memory, centos 6 x64
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,933
    6,911
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,407
    Local Time:
    12:33 PM
    Nginx 1.13.x
    MariaDB 5.5
    do you use ngx_pagespeed or webdav features at all ? try to troubleshoot this by disabling these and updating PCRE to 8.3.6 in centmin.sh and then recompile Nginx via centmin.sh menu option 4 setting nginx to 1.7.9 version

    in centmin.sh set the following before recompile Nginx via centmin.sh menu option 4
    Code:
    NGINX_WEBDAV=n
    NGINX_PCREVER='8.36'
    NGINX_PAGESPEED=n
     
  5. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    9:33 PM
    latest
    10
    I'm getting this error right after the install.
    [root@vps ~]# service nginx start
    Starting nginx: /bin/bash: line 1: 23984 Segmentation fault /usr/local/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    [FAILED]
    Never had this issue before as always things went smoothly during the install
     
  6. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    9:33 PM
    latest
    10
    Did a recompile with menu option 4 and still the same above error
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,933
    6,911
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,407
    Local Time:
    12:33 PM
    Nginx 1.13.x
    MariaDB 5.5
    can you provide info asked in 2nd post above too
     
  8. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    9:33 PM
    latest
    10
    It's a OpenVZ Container | installed the .07 stable which installed nginx 1.7.9 | Memory 2GB
    I run the following everytime:

    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
    unzip centmin-v1.2.3-eva2000.07.zip
    cd centmin-v1.2.3mod
    chmod +x centmin.sh
    yum clean all
    ./centmin.sh

    Then menu option 1. I installed 4 last night with no issue - this is the first time this has happen to me.
     
  9. eva2000

    eva2000 Administrator Staff Member

    30,933
    6,911
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,407
    Local Time:
    12:33 PM
    Nginx 1.13.x
    MariaDB 5.5
    hmm wonder if it's like .08 beta and OpenVZ + CentOS7..

    Last night i did test .07 install of latest on KVM VPS without problems.. need to try OpenVZ then

    Only thing I can think of right now is how Centmin Mod uses ngx_pagespeed from their github master repo and not version specific release so their master could of introduced code that messes with Nginx

    Try installing but edit centmin.sh line 187 first and set to no the following

    Code:
    NGINX_PAGESPEEDGITMASTER=n   # Install ngx_pagespeed from official github master instead  
     
  10. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    9:33 PM
    latest
    10
    The .08 beta worked just fine on OpenVZ | centos-7-x86_64 - I'll test the .07 stable with pagespeed off in a few moments
     
  11. eva2000

    eva2000 Administrator Staff Member

    30,933
    6,911
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,407
    Local Time:
    12:33 PM
    Nginx 1.13.x
    MariaDB 5.5
    Now that's weird as have folks reporting nginx server ain't restarting on CenOS 7 + OpenVZ with .08 beta... weird

    NGINX_PAGESPEEDGITMASTER=n

    still installs ngx_pagespeed module just the source is different.. with set to =n it uses official version release.. with set to =y it uses master repository release
     
  12. eva2000

    eva2000 Administrator Staff Member

    30,933
    6,911
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,407
    Local Time:
    12:33 PM
    Nginx 1.13.x
    MariaDB 5.5
  13. eva2000

    eva2000 Administrator Staff Member

    30,933
    6,911
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,407
    Local Time:
    12:33 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 2