Welcome to Centmin Mod Community
Register Now

Can I request turn on/off variables for this?

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

  1. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    8:58 PM
    Mainline
    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. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    8:58 PM
    Mainline
    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

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:58 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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
     
  4. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    8:58 PM
    Mainline
    10.2
    Thanks a lot Eva :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:58 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  6. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    8:58 PM
    Mainline
    10.2
  7. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:58 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    it's needed if you use monitoring apps like newrelic too as that's how it gets your nginx stats
     
  8. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    8:58 PM
    Mainline
    10.2
    Yeah, also on Linode monitoring also.
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:58 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yup :)
     
  10. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    8:58 PM
    Mainline
    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. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    8:58 PM
    Mainline
    10.2
    And also, this variable is still being used/applied?
     
  12. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:58 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    looks okay
    it's applied and used
     
  13. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:58 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  14. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:58 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  15. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    8:58 PM
    Mainline
    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

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:58 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    8:58 PM
    Mainline
    10.2
    I will turn it back on when Letsencrypt is available on 2016 :D.
     
  18. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:58 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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 :)
     
  19. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    2:58 PM
    Nginx-1.25.x
    MariaDB 10.3.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

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:58 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+