The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to permanently disable domlogs?

Discussion in 'General Discussion' started by OooLong, Apr 28, 2014.

  1. OooLong

    OooLong Well-Known Member

    Joined:
    Mar 16, 2011
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    Hi,

    Recently I tried to disable domlogs by editing /etc/httpd/conf/httpd.conf and comment out the two CustomLog field for a domain because the logs it were generating were quite large and fast. But after a few days the domlogs is working again and the CustomLog revert back to its previous state. How do I make the comment out last permanently in httpd.conf? Thanks in advance.
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
  3. OooLong

    OooLong Well-Known Member

    Joined:
    Mar 16, 2011
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    I don't see a /usr/local/apache/conf/userdata folder. Do I need to create one?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The directory structure is not created automatically. You will need to create those directories if they do not yet exist.

    Thank you.
     
  5. OooLong

    OooLong Well-Known Member

    Joined:
    Mar 16, 2011
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    /usr/local/apache/conf/userdata/std/2_4/$user/$domain/$includename.conf

    I'm done creating directory structure as instructed. Do I just repeat adding this CustomLog and comment it out, and that will overwrite the setting in httpd.conf? is this correct?

    includename.conf:
    #CustomLog /usr/local/apache/domlogs/domain.com combined
    #CustomLog /usr/local/apache/domlogs/domain.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."

    thank you.
     
    #5 OooLong, Apr 29, 2014
    Last edited: Apr 29, 2014
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I would use the instructions under:

    "Custom templates that will apply to a single virtual host"

    This way you can directly modify the "CustomLog" entries for the domain name in it's VirtualHost template.

    Thank you.
     
Loading...

Share This Page