WHM can set the permissions used for Apache log files through its log chmod setting. This is useful when an administrator needs to adjust authorised log access while keeping sensitive request data protected.
Review the required access
Record the current value and identify the account or group that needs to read the logs. The documented default is 0640: the owner can read and write, the group can read, and other users have no access.
Do not make logs world-writable or add executable permissions. Choose a different value only after checking the ownership and requirements of the server’s logging and statistics tools.
Change the WHM setting
- Log in to WHM as an administrator.
- Open Server Configuration > Tweak Settings.
- Under Stats and Logs, locate Apache log file chmod value.
- Enter the approved octal permission value.
- Select Save and review the result.
Verify logging
Check actual log permissions and confirm that Apache continues writing logs and the required statistics tools can read them. The setting is specific to Apache log handling; it is not a general instruction to change every log on the server.
If the change prevents required access, restore the recorded value and investigate the account or group permissions separately.