Ok...version 3.0 of this plugin seems to be working ok, so I'm releasing it here..
Download Version 3.0.0 Plugin
Changes from 2.1.9:
- Update.sh script grabs the latest AWStats build (currently 6.6) now instead of 6.5.
Previoiusly you had to edit the update script and make a change to the url, but I've permentantly fixed that
- Changed default location of users stats data.
It is now stored in /home/user/domains/domain.tld/stats folder. The config file will stay where it always has been in /etc/awstats. This means now that stats will count against your clients disk usage and on the plus side, be backed up by DA's normal processes. When moving a user to a new server, his stat data will follow him now. Only need to activate AWStats for that user on new server and do a normal AWStats install from the plugin in their User DA screen.
- Sets AllowToUpdateStatsFromBrowser=0 by default.
This prevents users from updating stats via web browser...more secure as this is one of the vuln that plagued AWS for a while in previous version.
- Set options that prevent users from displaying each others stats.
With previous versions you could use the "?config=domain.tld" parm to view other users stats, regardless if they had the directory password protected or not. Now the options are set to prevent his as long as the users /awstats directory is password protected. Thus the following was implimented.
- Automatically password protects users /awstats folder upon install.
Now when users do the install from the plugin, it will automatically password protect the folder and then prompt them to go change it in the tune stats option. It uses the same password for all new installs, but users are told to go change it. (I will probably modify this to create a random one in next version).
Upcoming changes:
- More options controls for both admin and user from within the plugin.
- Automatically update the directadmin_cron file to start collecting stats
- Automatically create the /usr/local/directadmin/scripts/custom/user_create_post.sh (if it does not exist)
Thus making it a one step install.
Let me know if their are any problems. And a big thanks to fusionicntl for his original work. I'm going to try and keep improving on his work and naturally, never a charge.