Hi all, This is just a question from a curious mind. I have enabled AWStats for my website a week ago, and for its staging counterpart today. Both are under version control, to distinct repositories. These were set up so that the relevant folder was symlinked to the repo. Thanks to @till, I used mount binds and the .htaccess and .htpasswd files appear in the directory listings of both "stats" folders. However, I can't seem to get anything other than a 404. This is true even when I rename the .htaccess file (on the staging website, ofc) to finally get around Wordpress's rewrite rule that I can't seem to get to ignore the /stats path, but that's a different story. My question is: how can I assert that the code in file server/lib/classes/cron.d/150-awstats.inc.php is actually run? The source code shows that some logs are emitted to $app->log with level LOGLEVEL_DEBUG but I can't seem to find any mention of awstats in the cron.log files. I do see a mention when enabling awstats from within the UI but nothing afterwards. Which leads to my question of how to know for certain that awstats is launched by ISPConfig? What logs can I inspect? Thanks.
Statistics are generated nightly, so you must have traffic to the site in the access.log for the statistics to appear the next day.
Yes indeed, there has to be some traffic before AWStats produces anything that can be displayed. The website does have traffic, as per the acces.log files and also according to the webstatistics solution I'm using (Matomo). My question is before that: how can I know that the nightly job for awstats has run? Is there any log line I can look for, is there a trail than I can hunt for? For the time being, the idea that came to me is to simply add a specific log text at the very beginning of the onRunJob function. Thanks.
You should be able to see in sys_cron (not cron) table in the database when each job was run and if it was run.
Your reply was very helpful in understanding what's happening. The last_run field for cronjob_awstats is NULL. I can now follow a specific trail. Thanks!