Get the most out of your Centmin Mod LEMP stack
Become a Member

Beta Branch disable unneeded access_log and error_log directives in nginx.conf

Discussion in 'Centmin Mod Github Commits' started by eva2000, Sep 8, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:38 AM
    Nginx 1.13.x
    MariaDB 5.5
    no revert the manual change you did and just update 123.09beta01 and run centmin.sh once to auto fix it
     
    • Informative Informative x 1
  2. pamamolf

    pamamolf Well-Known Member

    2,767
    245
    63
    May 31, 2014
    Ratings:
    +436
    Local Time:
    7:38 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    After updating Centminmod and re run it i got at my cnfig:

    Code:
    access_log  off;
    error_log   logs/error.log warn;
    Is that what i should get ?

    Just to verify and avoid any Nginx restart or in general issues :)
     
  3. Jimmy

    Jimmy Premium Member Premium Member

    1,138
    252
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +609
    Local Time:
    12:38 PM
    1.13.x
    MariaDB 10.1.x
    Nothing changed in my nginx.conf

    Code:
    access_log  logs/access.log combined buffer=128k flush=5m;
    error_log   logs/error.log warn;
    if I manually change the access_log to off and restart nginx doesn't restart for me.
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:38 AM
    Nginx 1.13.x
    MariaDB 5.5
    that's correct
    you're syntax is wrong, what @pamamolf has is correct
     
    • Like Like x 1
  5. pamamolf

    pamamolf Well-Known Member

    2,767
    245
    63
    May 31, 2014
    Ratings:
    +436
    Local Time:
    7:38 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    You can set it to:
    Code:
    access_log  off;
    error_log   logs/error.log warn;
    
    We just post at the same time George :)
     
    Last edited: Sep 13, 2017
    • Like Like x 1
  6. Jimmy

    Jimmy Premium Member Premium Member

    1,138
    252
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +609
    Local Time:
    12:38 PM
    1.13.x
    MariaDB 10.1.x
    Now the code is working. :)
     
    • Like Like x 2