Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    103
    Likes Received:
    0
    Trophy Points:
    66
    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:
    829
    Likes Received:
    26
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. OooLong

    OooLong Well-Known Member

    Joined:
    Mar 16, 2011
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    66
    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:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. OooLong

    OooLong Well-Known Member

    Joined:
    Mar 16, 2011
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    66
    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:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice