Skip to main content

Disable Apache access_log

Comments

3 comments

  • cPRex Jurassic Moderator
    Hey there! Editing the httpd.conf file on a cPanel server is not supported, as it will be overwritten with each nightly update due to all the various ways that cPanel tools interact with and create that file. It may be best to edit the pre_virtualhost_global.conf include file as outlined here for those changes to stick: Advanced Apache Configuration | cPanel & WHM Documentation
    0
  • trustnoone
    Can someone please help to advise what exactly needs to be done to disable apache access logs globally even for newly added domains?
    0
  • cPRex Jurassic Moderator
    @trustnoone - if the issue is with the access_log becoming too large, I would recommend log rotation tools first instead of disabling that file. That can be done through WHM >> Apache Configuration under the Log Rotation section. You can also enable the WHM >> Tweak Settings option of "Delete each domain"s access logs after statistics are gathered" to save on disk space. If you have piped logging enabled, you could use the details mentioned at The splitlogs Binary | cPanel & WHM Documentation to customize the splitlog binary to further change the behavior.
    0

Please sign in to leave a comment.