
Originally Posted by
ckoehler
Thanks Don!
I've seen this option, but the log format change was server wide, so adding a conf file per user is not feasible. Is there a way to prevent cpanel from overwriting the file all the time? Or a way to specify a different file at some other location?
Christoph

Originally Posted by
ckoehler
Anything? Surely I am not the only person with this problem.
I apologize for the delayed update; while researching internally I was unable to determine an easier way to accomplish the task. I believe a feature request would help best to have the enhanced functionality considered for inclusion as a native (built-in) feature.
If needing to safely retain an edit to the default AWStats configuration file I recommend using one of the built-in hooks to execute a custom script or other custom commands that reapply the change or apply a patch. Here is our documentation regarding script hooks for cPanel and WHM:
cPanel/WHM Script Hooks
Here is an example of a pre hook and a post hook that could be created and used as referenced in the documentation:
Code:
/scripts/preupcp
/scripts/postupcp
For development-related inquires, (e.g., usage of hooks), I recommend the cPanel and WHM Developer Discussions forum area:
Developer Discussions - cPanel Forums
The following documentation regarding other built-in hooks may also be of interest:
Hooking into cPanel Functionality
EasyApache Hook Scripts