NO yesterday-access.log

Discussion in 'Installation/Configuration' started by liquid, Jan 28, 2016.

  1. liquid

    liquid New Member

    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?
     
    Last edited: Jan 28, 2016
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  3. liquid

    liquid New Member

    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.
     
  4. liquid

    liquid New Member

    Hello, this trick was not helpful. Situation is still the same.

    Any other help?
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  6. liquid

    liquid New Member

    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/
     
    Last edited: Jan 29, 2016
  7. liquid

    liquid New Member

    I found that not all websites have bind record in /etc/fstab for logfiles.
     
  8. liquid

    liquid New Member

    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?
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  10. liquid

    liquid New Member

  11. till

    till Super Moderator Staff Member ISPConfig Developer

    yes, that's the script.
     
  12. liquid

    liquid New Member

    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?
     
  13. liquid

    liquid New Member

    Maybe last question... what is creating and rotating links yesterday-access.log ??
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    The cron_daily.php script right before it runs awstats.
     

Share This Page