Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    18

    Default can i disable apache log?

    too many of them.and it uesless to me.It generates over 1G log files in domlogs directory.
    The server is getting slower.
    I am trying to edit the httpd.conf file. And every virtual host has log setting.
    Can I disable all domain apache logs?
    Thanks

  2. #2
    Registered User
    Join Date
    Jul 2006
    Posts
    3

    Smile you don't need to disable apache log

    You don't need to be disable apache log. you can do only empty the files under the directory domlogs, which is using more space then you will get more space availale .
    fire the command as following to empty file :

    echo > filename

    Quote Originally Posted by charliesxia
    too many of them.and it uesless to me.It generates over 1G log files in domlogs directory.
    The server is getting slower.
    I am trying to edit the httpd.conf file. And every virtual host has log setting.
    Can I disable all domain apache logs?
    Thanks

  3. #3
    Member Danny_T's Avatar
    Join Date
    Jul 2005
    Location
    Netherlands
    Posts
    181

    Default

    Or even better logrotate the logfiles. I do it every 24 hours and keeping 1 week gzipped backups. That keeps the domlogs dir low in size and apache/stats to run fast.
    Net Tuning (Dutch)
    Official cPGS GameServer Mirror
    *New* Virtual Private Server hosting

  4. #4
    Registered User
    Join Date
    Aug 2006
    Posts
    18

    Default

    i add some ### infront fo the comm setting in the httpd.conf
    seemed that the apache stop build all log files in the domlogs.nice!!
    I thinks it is better than rotate the logfiles,reduce the some work for apache ,which will run faster than before.

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge rvskin's Avatar
    Join Date
    Feb 2003
    Posts
    397

    Default

    But the Awstats and others will not be able to generate the report also as there is no data.
    RVSkin, a great experience for you, resellers and clients!
    http://www.RVSkin.com - The Most Intelligent Cpanel Skin, 23 Languages included.
    http://www.RVSiteBuilder.com - Website Builder for Hosting Provider.
    http://www.cPanelLicense.com - External cPanel License.

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge jester.ro's Avatar
    Join Date
    Feb 2004
    Location
    Bucharest, Romania
    Posts
    304

    Default

    i think that by commenting the customlog entry of a vhost, will make it log into the default apache access_log (/usr/local/apache/logs/acces_log )

    If that is your case, apart from commenting every customlog entry, you need to redirect de default access_log to /dev/null
    Reliable dedicated and colocation services in Romania
    www.etp.ro

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge jester.ro's Avatar
    Join Date
    Feb 2004
    Location
    Bucharest, Romania
    Posts
    304

    Default

    Quote Originally Posted by rvskin
    But the Awstats and others will not be able to generate the report also as there is no data.
    True, but there are alot of customers that do their own logging, and don;'t need more stats from awstats

    to disable secific customers, edit the Customlog entry to point to /dev/null
    Reliable dedicated and colocation services in Romania
    www.etp.ro

  8. #8
    Member
    Join Date
    May 2006
    Location
    Morocco
    Posts
    158
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    how chould i disable apache2 all logs . or rotate th logs every 12 hours ?

    please with instruction .

  9. #9
    Member
    Join Date
    Dec 2003
    Posts
    26

    Default

    <<BUMP>>

    I have two domains that go over the 2G filesize in domlogs.

    As the user above, I would like to rotate logs avery day, keeping two or three zipped days as a trail.

    Colorful system log reporting is no longer important. I use grep when sifting for trouble.

Similar Threads & Tags
Similar threads

  1. Disable log processing / accounting for an user
    By Silent Ninja in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-25-2009, 11:48 AM
  2. Disable All Log File Processing?
    By UltimateDBZ in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-16-2005, 03:14 PM
  3. Disable Apache log files
    By anton_latvia in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-15-2004, 03:11 AM
  4. i don't need the apache log, how can i disable that? all users.
    By Jedia in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-10-2004, 09:08 PM
  5. Disable Sub-Domain Log Files?
    By Jeff75 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-03-2003, 07:31 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube