Welcome to Centmin Mod Community
Register Now

Can I request turn on/off variables for this?

Discussion in 'Feature Requests & Suggestions' started by RoldanLT, Sep 23, 2015.

  1. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    10:57 PM
    1.11
    10.2
    That I can use on my custom_config.inc.
    Since I'm not using this modules, I want this to exclude on Nginx compilation:
    Code:
    --with-http_stub_status_module
    --with-http_sub_module
    --with-http_addition_module
    --with-http_image_filter_module
    --add-module=../ngx_cache_purge-2.3
    --add-module=../nginx-accesskey-2.0.3
    --add-module=../nginx-http-concat-master
    --with-threads

     
  2. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    10:57 PM
    1.11
    10.2
    and if possible, can you explain this other 3 configure arguments?
    Code:
    --with-ld-opt='-lrt -ljemalloc -Wl,-z,relro'
    --with-cc-opt='-m64 -mtune=native -g -O2 -fstack-protector
    --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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'
    I can't find enough information on google search.

    Thanks Eva!
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    12:57 AM
    Nginx 1.13.x
    MariaDB 5.5
    k something for 123.09beta01 later on

    as to the arguments they are for intel optimisations + using jemalloc for memory for Nginx and last part is for clang compiler to work properly and disable warning/errors it spits out. Clang's errors abort compilation while GCC continue.

    fyi, you may need nginx_cache_purge for some nginx caching configurations
     
    • Informative Informative x 1
  4. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    10:57 PM
    1.11
    10.2
    Thanks a lot Eva :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    12:57 AM
    Nginx 1.13.x
    MariaDB 5.5
  6. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    10:57 PM
    1.11
    10.2
  7. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    12:57 AM
    Nginx 1.13.x
    MariaDB 5.5
    it's needed if you use monitoring apps like newrelic too as that's how it gets your nginx stats
     
    • Informative Informative x 1
  8. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    10:57 PM
    1.11
    10.2
    Yeah, also on Linode monitoring also.
     
    • Like Like x 1
  9. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    12:57 AM
    Nginx 1.13.x
    MariaDB 5.5
    Yup :)
     
  10. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    10:57 PM
    1.11
    10.2
    I hope I modified it correctly :D
    Can't wait for the option so I modify it directly :D
    nginx_configure.inc ยท GitHub

    [​IMG]

     
    Last edited: Sep 23, 2015
  11. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    10:57 PM
    1.11
    10.2
    And also, this variable is still being used/applied?
     
  12. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    12:57 AM
    Nginx 1.13.x
    MariaDB 5.5
    looks okay
    it's applied and used
     
    • Like Like x 1
  13. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    12:57 AM
    Nginx 1.13.x
    MariaDB 5.5
  14. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    12:57 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  15. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    10:57 PM
    1.11
    10.2
    This cause me some issues on new VPS installed :D
    Code:
    # prepare for letsencrypt
        # https://community.centminmod.com/posts/17774/
        location ~ /.well-known {
            location ~ /.well-known/acme-challenge/(.*) {
                more_set_headers    "Content-Type: application/jose+json";
            }
        }
    I remove it for now.
     
  16. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    12:57 AM
    Nginx 1.13.x
    MariaDB 5.5
    oh i see more_set_headers is only available via headers more nginx module, if you turn that off you do not get Letsencrypt support in future development ! ;)

    set it to
    Code:
    ORESTY_HEADERSMORE=y
     
  17. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    10:57 PM
    1.11
    10.2
    I will turn it back on when Letsencrypt is available on 2016 :D.
     
  18. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    12:57 AM
    Nginx 1.13.x
    MariaDB 5.5
    i signed up for their early beta program so hoping to be testing free Letsencrypt SSL certificates for Centmin Mod integration in a few weeks - fingers crossed still alot of work in their Letsencrypt client for non-debian/non-ubuntu apache and nginx configurations. They develop on debian so CentOS isn't tested as much. Hope my beta testing involvement helps with CentOS side :)
     
    • Like Like x 1
    • Winner Winner x 1
  19. pamamolf

    pamamolf Well-Known Member

    2,721
    242
    63
    May 31, 2014
    Ratings:
    +433
    Local Time:
    5:57 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Can i use the:
    Code:
    /etc/centminmod/custom_config.inc
    to use these settings?:
    Code:
    NSD_INSTALL=n
    NGINX_GEOIP=n
    NGINX_SPDY=n  <--- Why we don't remove this option at all from centmin.sh as now we have http2?
    NGINX_SUB=n
    NGINX_ADDITION=n
    NGINX_PAGESPEED=n
    NGINX_HTTPCONCAT=n
    NGINX_HTTPREDIS=n
    NGINX_OPENRESTY='n'  <----Is this needed for Letsencrypt free SSL certificate integration?
    ORESTY_LUANGINX='n'
    PHPREDIS='n'
    And on this file:
    Code:
    /etc/centminmod/php.d/a_customphp.ini
    to use these settings?:
    Code:
    session.save_handler = memcached
    session.save_path = "127.0.0.1:11211"
    That will be great if it is possible as i will not have to edit centmin.sh after every update or after every php update !
     
    Last edited: Sep 27, 2015
  20. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    12:57 AM
    Nginx 1.13.x
    MariaDB 5.5