Bentok

Active Member
Jan 14, 2015
26
1
53
cPanel Access Level
Website Owner
Is there possible to disable access_log in cpanel? I commented httpd.conf but each time on update or anything the configuration uncomment the log line.. I mean is there any setting to do so it won't do that or just disable it?

# CustomLog logs/access_log combined env=!isproxyrequest

Appreciate the advise!
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
11,793
1,878
363
cPanel Access Level
Root Administrator
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