ClayRabbit
Verified User
Plugin: Stats Control (Yet another AwStats Plugin 
Stats Control Plugin
http://ruweb.net/DA/Stats_Control.tar.gz
Implemented about 6 monthes ago, because I wasn't happy about fusionictnl's plugin and I hate DirectAdmin's daily rotation.
Features:
- User is able to choose (for each domain) which stats processor to use (awstats/webalizer/none), admin can specify which proccessor will be used by default.
- Logs rotated monthly and domain logs with all subdomains logs are packed in ONE archive (and without trailing '.1' in filename).
- Also log will be rotated if it's size is over specified value.
- Some webalizer/awstats settings is customizable by user/admin. Template system for config files.
- Webalizer/awstats will be runned with user previlleges (not under root), so our server is safe (at least i hope so
from known or unknown vulnerabilities in those programs.
- After rotation, logs permissions will be changed to 440 nobody:user, so users will no longer be able to read other user's logs.
Notes:
- Bundled awstats version is 6.4, but you free to update it manually.
- During install, this plugin will disable DirectAdmin's log rotation and webalizer run (and will enable those features after uninstall).
- Files inside domains/*/stats directory becomes owned by corresponding user, and so it becomes counted in quota usage, but user is able to delete those files anytime and disable stats generation.
- Yep, awstats will work for subdomains also.
- For RedHat you should apply special patch to fix bug in awstats.pl (see awstats.pl.rh90.patch located nside plugins/Stats_Control/awstats/cgi-bin).

Stats Control Plugin
http://ruweb.net/DA/Stats_Control.tar.gz
Implemented about 6 monthes ago, because I wasn't happy about fusionictnl's plugin and I hate DirectAdmin's daily rotation.
Features:
- User is able to choose (for each domain) which stats processor to use (awstats/webalizer/none), admin can specify which proccessor will be used by default.
- Logs rotated monthly and domain logs with all subdomains logs are packed in ONE archive (and without trailing '.1' in filename).
- Also log will be rotated if it's size is over specified value.
- Some webalizer/awstats settings is customizable by user/admin. Template system for config files.
- Webalizer/awstats will be runned with user previlleges (not under root), so our server is safe (at least i hope so

- After rotation, logs permissions will be changed to 440 nobody:user, so users will no longer be able to read other user's logs.
Notes:
- Bundled awstats version is 6.4, but you free to update it manually.
- During install, this plugin will disable DirectAdmin's log rotation and webalizer run (and will enable those features after uninstall).
- Files inside domains/*/stats directory becomes owned by corresponding user, and so it becomes counted in quota usage, but user is able to delete those files anytime and disable stats generation.
- Yep, awstats will work for subdomains also.
- For RedHat you should apply special patch to fix bug in awstats.pl (see awstats.pl.rh90.patch located nside plugins/Stats_Control/awstats/cgi-bin).
Last edited: