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 disable that stupid domlog

Discussion in 'Workarounds and Optimization' started by septi, Dec 27, 2012.

  1. septi

    septi Active Member

    Joined:
    Dec 27, 2012
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    I can remove all lines from httpd.conf but there re too many of them. I deleted the main ones it doesn't work. Should I disable


    <IfModule log_config_module>?

    How would I do that? Tweak apache? No such option in cpanel.

    It's a stupid useless log that consume hard disk like mad.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,470
    Likes Received:
    198
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Why is it consuming disk space?

    404 and favicon errors?
     
  3. septi

    septi Active Member

    Joined:
    Dec 27, 2012
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Why? All the domlogs are going to the main hard disk. It increases hard disk utilization to 100% because I have 1500 domains and so many visitors.

    I have 16 core CPU 4 hard disk yet those doesn't matter. That one hard disk is the bottle neck of all. Only 8% CPU and load is already extremely high.
     
  4. septi

    septi Active Member

    Joined:
    Dec 27, 2012
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    There is no error. We just have 1500 domains and too many visitors including search engine bots. Domlogs jot them down. At the least I want to move the log files to the same hard drive with the account. Now that would make more sense. All those going to the same hard disk defeat purpose of having big hard disk in the first place.
     
  5. electric

    electric Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    697
    Likes Received:
    1
    Trophy Points:
    18
    Did you find a solution to this?
     
  6. tandyuk

    tandyuk Active Member

    Joined:
    Dec 18, 2003
    Messages:
    32
    Likes Received:
    1
    Trophy Points:
    8
    domlogs are actually quite important for your users, for such things as stats.

    Why not move your logs to a different drive.

    install new ssd, partition a spare disk, mount iscsi target, or whatever to give yourself a blank partition of suitable size.
    format new partition with ext4
    stop cpanel / apache
    mkdir /usr/local/apache/domlogs.old
    mv /usr/local/apache/domlogs/* /usr/local/apache/domlogs.old/
    mount new partition on /usr/local/apache/domlogs, and add to fstab
    mv /usr/local/apache/domlogs.old/* /usr/local/apache/domlogs/
    retstart cpanel and apache.

    The fact you needed to ask this here, tells me that you ought to have a professional sysadmin carry out this work for you.
     
    cPanelJared likes this.
Loading...

Share This Page