AWStats 6.1 - easy install/remove script here.

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
 
Last edited:
There's a great self-help community here, Miky.

If there needs to be a change (I bet there does; there've been a lot of complaints recently about the stats difference between AWStats and webalizer), and whoever wrote the plugin hasn't fixed it, then it may very well be time for a new plugin.

Has anyone attempted to contact the author of the existing plugin?

Jeff
 
Steps for Adding a single Cronjob for Awstats Serverwide

Hello,

I am a newbie for Linux system administration.Could you please help me out for setting a cronjob for Awstats.

I wish to have a step to add a cronjob so to update the Awstats of the Linux CentOS server which includes all domains. I do not wish to go add cronjob for every single domain.
Please provide me the string and also please let me know the steps.



Thanks
TechNet
 
Back
Top