Learn about Centmin Mod LEMP Stack today
Register Now

Beta Branch revise nginx & php default buffers in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Dec 23, 2019.

  1. eva2000

    eva2000 Administrator Staff Member

    54,573
    12,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,793
    Local Time:
    8:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    revise nginx & php default buffers in 123.09beta01

    for fresh installs only, revise nginx.conf and php.conf buffer defaults for better use of memory

    change /usr/local/nginx/conf/nginx.conf output_buffers to value = 2 32K
    Code (Text):
    output_buffers   2 32k;

    in /usr/local/nginx/conf/php.conf and variants for Module ngx_http_fastcgi_module, change to
    Code (Text):
    fastcgi_buffer_size 4k;
    fastcgi_buffers 512 4k;

    Existing installs will have to manually update those settings as to not override folks custom values set for php. For nginx.conf updated 123.09beta01 and run centmin.sh menu once should make the change for output_buffers.

    Continue reading...


    123.09beta01 branch
     
  2. BamaStangGuy

    BamaStangGuy Active Member

    668
    192
    43
    May 25, 2014
    Ratings:
    +272
    Local Time:
    4:32 AM
    Any reading material for why the adjustment?
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,573
    12,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,793
    Local Time:
    8:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    You can read official doc explanation of those variables at Module ngx_http_fastcgi_module and Module ngx_http_core_module

    for fastcgi