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

nginx didn't install

Discussion in 'Bug Reports' started by dorobo, Feb 11, 2016.

Tags:
  1. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    1:04 PM
    latest
    latest
    linode 1gb
    centminmod beta
    nginx 1.9.10

    Code:
        -o objs/addon/src/ngx_http_lua_util.o \
        ../lua-nginx-module-0.9.20/src/ngx_http_lua_util.c
    In file included from ../lua-nginx-module-0.9.20/src/ngx_http_lua_util.c:38:
    ../lua-nginx-module-0.9.20/src/ngx_http_lua_socket_udp.h:34:5: error: unknown type name 'ngx_resolver_connection_t'; did you mean 'ngx_peer_connection_t'?
        ngx_resolver_connection_t        udp_connection;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
        ngx_peer_connection_t
    src/event/ngx_event_connect.h:22:39: note: 'ngx_peer_connection_t' declared here
    typedef struct ngx_peer_connection_s  ngx_peer_connection_t;
                                          ^
    1 error generated.
    make[1]: *** [objs/addon/src/ngx_http_lua_util.o] Error 1
    make[1]: Leaving directory `/svr-setup/nginx-1.9.10'
    make: *** [install] Error 2
    
    real    0m0.265s
    user    0m0.233s
    sys    0m0.023s
    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
    grep: /usr/local/nginx/conf/mime.types: No such file or directory
    grep: /usr/local/nginx/conf/mime.types: No such file or directory
    
    
    
    
    
    ${CUR_DIR} & ${CM_INSTALLDIR}
    /root/centminmod-123.09beta01
    /root/centminmod-123.09beta01
    
    Setup default hostname: localhost.localdomain
    
    
    ----------------------------------------------
    Creating /etc/logrotate.d/nginx file
    ----------------------------------------------
    ......
    ----------------------------------------------------------------------------
    /var/log/nginx/*.log /usr/local/nginx/logs/*.log /home/nginx/domains/*/log/*.log {
            daily
            dateext
            missingok
            rotate 10
            size=500M
            compress
            delaycompress
            notifempty
            postrotate
            /bin/kill -SIGUSR1 $(cat /usr/local/nginx/logs/nginx.pid 2>/dev/null) 2>/dev/null || true
            endscript        
    }
    ---------------------------------------------------------------------------
    Current nginx log directories:
    ---------------------------------------------------------------------------
    ls -lh /var/log/nginx/
    total 0
    -rw-rw-rw- 1 root root 0 Feb 11 04:42 localhost.access.log
    -rw-rw-rw- 1 root root 0 Feb 11 04:42 localhost.error.log
    ---------------------------------------------------------------------------
    total 0
    ---------------------------------------------------------------------------
    
    ----------------------------------------------------------------------------
    nginx logrotation /etc/logrotate.d/nginx setup completed
    ----------------------------------------------------------------------------
    
    setup pagespeedstatslog.conf at /usr/local/nginx/conf/pagespeedstatslog.conf
    cp /usr/local/nginx/conf/pscontrol /usr/bin/pscontrol
    -rw-r--r-- 1 root root 6.5K Feb 11 04:42 /usr/local/nginx/conf/pagespeed.conf
    -rw-r--r-- 1 root root 668 Feb 11 04:42 /usr/local/nginx/conf/pagespeedhandler.conf
    -rwx------ 1 root root 2.4K Feb 11 04:42 /usr/bin/pscontrol
    *************************************************
    [1;32;40m* nginx installed, Apache disabled
    (B[m*************************************************
    
    Total Nginx First Time Install Time: 418.377590071 seconds


     
  2. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    3:04 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    that must be older 123.09beta01 as latest fixes this with a patch i made about 20+ commits ago add luapatch function for nginx 1.9.11 · centminmod/centminmod@63a1894 · GitHub :) Also latest 123.09beta01 has nginx 1.9.11 defaults

    123.09beta01 commit history Commits · centminmod/centminmod · GitHub

     
    Last edited: Feb 11, 2016
  3. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    1:04 PM
    latest
    latest
    rebuilt the vps with a fresh centos 7

    Code:
    # nginx -v
    nginx version: nginx/1.9.11
    [root@localhost centminmod-123.09beta01]# nprestart
    Restarting nginx (via systemctl):  Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
                                                               [FAILED]
    Gracefully shutting down php-fpm . done
    Starting php-fpm  done
    
    Code:
    # service nginx status
    ● nginx.service - SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
       Loaded: loaded (/etc/rc.d/init.d/nginx)
       Active: failed (Result: exit-code) since Thu 2016-02-11 20:32:24 PHT; 2min 17s ago
         Docs: man:systemd-sysv-generator(8)
      Process: 4275 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=1/FAILURE)
    
    Feb 11 20:32:24 localhost.localdomain systemd[1]: Starting SYSV: Nginx is an HTTP(S) s....
    Feb 11 20:32:24 localhost.localdomain nginx[4275]: Starting nginx: nginx: [emerg] unkn...2
    Feb 11 20:32:24 localhost.localdomain nginx[4275]: [FAILED]
    Feb 11 20:32:24 localhost.localdomain systemd[1]: nginx.service: control process exite...1
    Feb 11 20:32:24 localhost.localdomain systemd[1]: Failed to start SYSV: Nginx is an HT....
    Feb 11 20:32:24 localhost.localdomain systemd[1]: Unit nginx.service entered failed state.
    Feb 11 20:32:24 localhost.localdomain systemd[1]: nginx.service failed.
    Hint: Some lines were ellipsized, use -l to show in full.
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    3:04 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    seem to have clipped off the important part
    Code:
    Starting nginx: nginx: [emerg] unknown directive "geoip_country" in /usr/local/nginx/conf/geoip.conf:2
    ah it might be
     
  5. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    3:04 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    looks like on fresh installs /usr/local/nginx/conf/dynamic-modules.conf is empty
     
  6. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    1:04 PM
    latest
    latest
    Code:
    ]# service nginx status
    ● nginx.service - SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
       Loaded: loaded (/etc/rc.d/init.d/nginx)
       Active: failed (Result: exit-code) since Thu 2016-02-11 20:32:24 PHT; 12min ago
         Docs: man:systemd-sysv-generator(8)
      Process: 4275 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=1/FAILURE)
    
    Feb 11 20:32:24 localhost.localdomain systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server...
    Feb 11 20:32:24 localhost.localdomain nginx[4275]: Starting nginx: nginx: [emerg] unknown directive "geoip_country" in /usr/local/nginx/conf/geoip.conf:2
    Feb 11 20:32:24 localhost.localdomain nginx[4275]: [FAILED]
    Feb 11 20:32:24 localhost.localdomain systemd[1]: nginx.service: control process exited, code=exited status=1
    Feb 11 20:32:24 localhost.localdomain systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
    Feb 11 20:32:24 localhost.localdomain systemd[1]: Unit nginx.service entered failed state.
    Feb 11 20:32:24 localhost.localdomain systemd[1]: nginx.service failed.
     
  7. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    1:04 PM
    latest
    latest
    I wonder how do you prevent that clipping of texts in xshell.
     
  8. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    1:04 PM
    latest
    latest
    Code:
    # nginx -t
    nginx: [emerg] unknown directive "geoip_country" in /usr/local/nginx/conf/geoip.conf:2
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
     
  9. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    1:04 PM
    latest
    latest
    also

    Code:
    # nginx -v
    nginx version: nginx/1.9.11
    but in centmin.sh

    Code:
    NGINX_VERSION='1.9.10'
    no nginx version setting in /etc/centminmod/custom_config.inc
     
  10. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    3:04 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  11. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    1:04 PM
    latest
    latest
    fresh install
    downloaded the latest beta

    Code:
    $ ./centmin.sh install
    Code:
    nginx_upstream_check_module-0.3.0 -I ../pcre-8.38 -I ../libressl-2.2.6/.openssl/include -I objs -I src/http -I src/http/modules -I src/http/v2 -I ../ngx_devel_kit-0.2.19/src -I src/stream \
        -o objs/addon/src/ngx_http_lua_util.o \
        ../lua-nginx-module-0.9.20/src/ngx_http_lua_util.c
    In file included from ../lua-nginx-module-0.9.20/src/ngx_http_lua_util.c:38:
    ../lua-nginx-module-0.9.20/src/ngx_http_lua_socket_udp.h:34:5: error: unknown type name 'ngx_udp_connection_t'
        ngx_udp_connection_t             udp_connection;
        ^
    1 error generated.
    make[1]: *** [objs/addon/src/ngx_http_lua_util.o] Error 1
    make[1]: Leaving directory `/svr-setup/nginx-1.9.11'
    make: *** [install] Error 2
    
    real    0m0.290s
    user    0m0.250s
    sys    0m0.027s
    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
    grep: /usr/local/nginx/conf/mime.types: No such file or directory
    grep: /usr/local/nginx/conf/mime.types: No such file or directory
    
    
    
    
    
    ${CUR_DIR} & ${CM_INSTALLDIR}
    /root/centminmod-123.09beta01
    /root/centminmod-123.09beta01
    
    Setup default hostname: localhost.localdomain
    
    
    ----------------------------------------------
    Creating /etc/logrotate.d/nginx file
    ----------------------------------------------
    ......
    ----------------------------------------------------------------------------
    /var/log/nginx/*.log /usr/local/nginx/logs/*.log /home/nginx/domains/*/log/*.log {
            daily
            dateext
            missingok
            rotate 10
            size=500M
            compress
            delaycompress
            notifempty
            postrotate
            /bin/kill -SIGUSR1 $(cat /usr/local/nginx/logs/nginx.pid 2>/dev/null) 2>/dev/null || true
            endscript          
    }
    ---------------------------------------------------------------------------
    Current nginx log directories:
    ---------------------------------------------------------------------------
    ls -lh /var/log/nginx/
    total 0
    -rw-rw-rw- 1 root root 0 Feb 11 23:06 localhost.access.log
    -rw-rw-rw- 1 root root 0 Feb 11 23:06 localhost.error.log
    ---------------------------------------------------------------------------
    total 0
    ---------------------------------------------------------------------------
    
    ----------------------------------------------------------------------------
    nginx logrotation /etc/logrotate.d/nginx setup completed
    ----------------------------------------------------------------------------
    
    setup pagespeedstatslog.conf at /usr/local/nginx/conf/pagespeedstatslog.conf
    cp /usr/local/nginx/conf/pscontrol /usr/bin/pscontrol
    -rw-r--r-- 1 root root 6.5K Feb 11 23:06 /usr/local/nginx/conf/pagespeed.conf
    -rw-r--r-- 1 root root 668 Feb 11 23:06 /usr/local/nginx/conf/pagespeedhandler.conf
    -rwx------ 1 root root 2.4K Feb 11 23:06 /usr/bin/pscontrol
    
    dynamic module directory at /usr/local/nginx/modules
    ls: cannot access /usr/local/nginx/modules: No such file or directory
    
    *************************************************
    [1;32;40m* nginx installed, Apache disabled
    (B[m*************************************************
    
    Total Nginx First Time Install Time: 418.076893895 seconds
     
  12. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    1:04 PM
    latest
    latest
    I settled for nginx 1.9.10 and it installed fine.

    another thing is this

    [​IMG]

    I've already entered primary email during centmin install. It still pops up everytime I run

    ./centmin.sh

    even I enter it again.
     

    Attached Files:

  13. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    3:04 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    need to enter both primary and secondary right now

    made lots of commits for Feb 12 for 123.09beta01 that you and @Matt might want to check out Commits · centminmod/centminmod · GitHub
     
  14. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    3:04 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    looks like ngx_pagespeed 1.10.33.4 patch doesn't work now on 123.09beta01 and lua nginx 0.9.20 broken but seems lua nginx 0.10.1rc0 was released with nginx 1.9.11 support but lua nginx 0.10 will trigger switch from libressl to openssl 1.0.2f for nginx as lua nginx 0.10 has features only available in openssl but not libressl

    this is latest 123.09beta01 with ngx_pagespeed disabled for now and lua nginx 0.10.1rc0 set via persistent config file at /etc/centminmod/custom_config.inc with:
    Code:
    ORESTY_LUANGINX='y'
    NGINX_PAGESPEED=n
    ORESTY_LUANGINXVER='0.10.1rc0'
    or for now you can disable ngx_pagespeed and nginx lua via persistent config file at /etc/centminmod/custom_config.inc and then recompile nginx 1.9.11 via centmin.sh menu option 4
    Code:
    ORESTY_LUANGINX='n''
    NGINX_PAGESPEED=n
     
  15. BobbyWibowo

    BobbyWibowo Active Member

    197
    42
    28
    Jul 30, 2015
    Indonesia
    Ratings:
    +71
    Local Time:
    12:04 PM
    1.17.x
    10.3.x
    Yesh, finally upgraded to 1.9.11.
    I couldn't upgrade my server before due to an error similar to this one pointed here: https://community.centminmod.com/posts/26301/
    But well, I don't seem to have lua nginx module. Will it be fine? I'm not familiar with the function of that module.
     
  16. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    3:04 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  17. BobbyWibowo

    BobbyWibowo Active Member

    197
    42
    28
    Jul 30, 2015
    Indonesia
    Ratings:
    +71
    Local Time:
    12:04 PM
    1.17.x
    10.3.x
    But PageSpeed is running well on my site though? Even after upgrading to 1.9.11?
     
  18. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    3:04 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    no you have it disabled from list of modules posted at https://community.centminmod.com/posts/26370/

    if you recompile on latest code 123.09beta01 branch, it has ngx_pagespeed and lua nginx so auto disabled ngx_pagespeed server wide

    you can confirm by using curl on your site headers and see if X-Page-Speed exists
    Code:
    curl -I https://community.centminmod.com 2>&1 | grep X-Page-Speed
    X-Page-Speed: CentminMod PageSpeed
     
  19. BobbyWibowo

    BobbyWibowo Active Member

    197
    42
    28
    Jul 30, 2015
    Indonesia
    Ratings:
    +71
    Local Time:
    12:04 PM
    1.17.x
    10.3.x
    But the header is there..
    pagespeed_eh.png
    And PageSpeed Admin is still detecting pages and making changes (as I can see on its Message History tab).

    BUT well, certainly it's not on nginx -V o_O

    EDIT: Never mind, restarting nginx seems to tell me that pagespeed is nowhere to be found, lol
     
  20. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    3:04 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    heh :)