Hello, im running ISPConfig 3.0.5.4p8, Ubuntu 14.04 x64, last updates, Apache. Older websites missing yesterday-access.log in the log directory, but newly created websites have this link. Thus older websites do not generate AWStats statistics. How can I fix log directory structure of older websites?
try to change a value in the settings of the affected site (e.g. switch cgi on, press save, switch cgi off again, press save, and check if it works the next day.
ok, i did it, lets see tomorow. I also did resync websites, disable stats on website, delete awstats.domain config, delete /web/stats/ directory, enable awstats again.
Ahh yes, sorry. There is no yesterday-access.log file in ISPConfig 3, the old logs have a date like 20160128-access.log. Maybe you copied the old sites from an ISPConfig 2 server or another software that created these files or symlinks.
Well, I do not understand that the newly created websites in ISPConfig 3.0.5.4p8 create this log structure: ll /var/log/ispconfig/httpd/test.cz/ total 28 drwxr-xr-x 2 root root 4096 Jan 29 00:38 ./ drwxr-xr-x 137 root root 12288 Jan 27 21:56 ../ -rw-r--r-- 1 root root 188 Jan 29 00:38 20160127-access.log.gz -rw-r--r-- 1 root root 6271 Jan 28 08:31 20160128-access.log lrwxrwxrwx 1 root root 19 Jan 28 08:31 access.log -> 20160128-access.log -rw-r--r-- 1 root root 0 Jan 27 21:56 error.log lrwxrwxrwx 1 root root 55 Jan 29 00:36 yesterday-access.log -> /var/www/clients/client2/web241/log/20160128-access.log And this AWStats config: Include "/etc/awstats/awstats.conf" LogFile="/var/log/ispconfig/httpd/test.cz/yesterday-access.log" SiteDomain="test.cz" HostAliases="www.test.cz localhost 127.0.0.1" Newly created websites have this structure and awstats is generating correctly. But older websites, definitely created on ISPConfig 3, later patches, on the same server, no move, restore from other servers have awstats configuration to access.log, which is current day log, well, it does not generate any stats. The old websites also have only error.log in the /log/ directory eg /var/www/domain/log/
Well, when i create manually record into the /etc/fstab for website, that cant create AWSTATS, run manually /usr/local/ispconfig/server/cron_daily.sh and holala... /stats/ are now generated. How can I FIX this systematicly?
Did you migrate the server and missed to copy the fstab lines over? ISPConfig can not recreate them on its own, but there must be s script here in the forum to recreate fstab entries that I posted some time ago, if I remember correctly.
Now, it looks like, it was migrated server. My EX-colleague told me, that it was clean install, well, it is not true. Well i found this script https://www.howtoforge.com/community/threads/fstab-log-lines-missing.68001/#post-323682 It is the one you thought?
Great, thank you, it resolve my trouble with: - awstats - missing bind entry for log directory in /etc/fstab By the way, haw can i regenerate stats for the past year if i have moved awstats db files from another server?