WARNING
If you have been using this script, it is very likely that stats have been incorrect (lower than the real figures) since the upgrade to DA 1.24
This is because webalizer is now rotating the apache logs daily, at 00:10 if i'm correct and awsetup up to 2.1 was setting a cron job at 03:15 AM .
The quick fix is to edit the user cronjobs and set them all before the rotation, at 00:00 would probably be early enough.
Awsetup 2.2 sets the cronjobs at 00:00 by default now.
I'm not too sure but I if you run DA 1.243 or above and the log rotation is turned off as explained here :
http://www.directadmin.com/features.php?id=507
This might do the trick as well, but cause some trouble to webalizer ??? So I would not suggest it.
I can modify this script to handle this cronjobs/crontime issue better but then it will only be one step closer to a plugin..... and there is already a pluggin which appears to be quite stable now
Here
What do you think ? the only major difference would be that it would use a not customised Awstats archive and would be installed in the user's directory rather than using symbolic links , the rest would work in a pretty simillar way ... is it really worth the coding time ?
Just in case ....
awsetup 2.2 is available, you can use it to install/remove/upgrade to AwStats 6.4 .
It also fixes some permissions for better security as someone suggested in this thread. The cronjob for new install is set to 00:00 by default. The -u option will NOT change the time of the cronjob.
Cheers
Miky