![awstats monthly awstats monthly](https://www.tecmint.com/wp-content/uploads/2014/06/Install-iRedMail-in-Linux-41-1024x570.png)
# This code was written by BigSoft Limited. I can tell the cron to run my plesk-awstats-fixer.sh program to run any time before awstat gets run for the second day’s statistics.Ġ 10 1 * * plesk-awstats-fixer.sh > paf.out 2> paf.err I do know that it finishes at about 6am with a new empty directory for this month with no statistics files in it. If anyone knows where this program is, please add a comment below. This makes it especially hard to navigate through the Plesk system maintenance files.Īs a result of this, there is a maze of unreadable cron (and anacron) configuration files hiding the Plesk add-on program that makes the “current” folder point to a new YYYY-MM folder. The problem with Plesk is that it obfuscates the PHP files preventing them from being read in the same way as a normal (text) PHP file. This is almost certainly because it can use the same scripts on Unix and Windows, so it removes the need to write batch files in bash and MS-DOS. One of the nice things about Plesk is that all its system maintenance scripts are written in PHP instead of the local shell. This problem is known to Plesk but their 8.4 release was a bit of a disaster and had to be withdrawn, but as I understand this issue is not fixed in 8.4 either. The rotation program runs at about 4am, which means that activity from 0:00 to 4:00 are trapped in the previous months activity folder.Īfter creating the new month folder, the Plesk program should copy the previous months activity files into the new folder. This new directory is empty and so the “current” directory has no history in which to draw last months statistics. On the 1st day of the month another program creates a fresh folder called YYYY-MM and makes the “current” link point to this instead. The “current” directory is actually a symbolic link to a real directory called $DOMAIN_STATS/webstat/YYYY-MM, where YYYY-MM is year-month. There is a daily job which calculates the web activity and places the results into that directory. The monthly history from previous months is forgotten.Īwstat’s configuration files all point to a working directory of $DOMAIN_STATS/webstat/current.
![awstats monthly awstats monthly](http://1.bp.blogspot.com/_qUfPJWk25s0/TGNxZX1-JqI/AAAAAAAAEzU/dmCWQp_rcV0/s1600/JAWStats_Calendar+of+Visitors+this+Month.png)
Plesk 8.3 awstats only shows the current month’s log statistics.