Webalizer Problem

Discussion in 'Installation/Configuration' started by dimitar, Apr 17, 2007.

  1. dimitar

    dimitar New Member

    Hi All,

    I could still not configure webalizer to make the stats. Its installed but in the stats folder of each web there is only .htaccess. I have followed this thread:

    http://www.howtoforge.com/forums/showthread.php?t=851

    and this one:

    http://www.howtoforge.com/forums/showpost.php?p=3227&postcount=8 -

    "fixed" the cron and then waited 24h - nothing happens. Then i have also tried to run the cronjob manually from shell: /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php, but i get only: creation of the stats folder for new sites, and when i look at it - it contains also only the .htaccess file and for the older sites - there is no change, the folder contains also only .htaccess. Nothing helped till now....

    Any ideas?

    thanks in advance

    Regards
     
  2. dimitar

    dimitar New Member

    Hi All,

    i have used strace to see what the webalizer.php tries to make. It looks for logs in /var/www/*/log but unfortunately on my server the log folder for all the sites contains only 2 files - error.log and .no_delete. Most of the sites are more than 1 month "old" and have been accessed!

    Any ideas guys?

    thanks
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    This means that the logs have not been splitted at all. Please execute:

    /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php

    as root user. Do you now have a access.log file in the log folders of the sites?
     
  4. dimitar

    dimitar New Member

    Yes,

    and it seems that none of the scripts in the cron run ropertly - they doesnt run at all. I had also no stats for resellers and customers (traffic e.t.c.). I have runned all the cronjobs manually and they can be seen now, i will now wait to see if everything runs smoothly over the night... and report back

    Its very strange, it was all cron issue

    thanks for the help!
     
  5. falko

    falko Super Moderator ISPConfig Developer

    Are all cron jobs listed properly when you run
    Code:
    crontab -l
    as root?
     
  6. dimitar

    dimitar New Member

    Yes they are listed propertly:

    crontab -l
    30 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php &> /dev/null
    59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php &> /dev/null
    59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/mail_logs.php &> /dev/null
    59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/cleanup.php &> /dev/null
    0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null
    0,30 * * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php &> /dev/null
    15 3,15 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/quota_msg.php &> /dev/null
    40 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/traffic.php &> /dev/null
    05 02 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php &> /dev/null
    */5 * * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/mysql_quota.php &> /dev/null
    0 10 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_mx.php


    I think this problem has nothing to do with ispconfig. Anyway its strange because i use debian sarge on this ispconfig box, as on many of my other servers and i run in to troubles with the cron daemon for the first time

    thanks for the help guys
     
  7. Hans

    Hans Moderator ISPConfig Developer

    About one year ago, i could not startup Webalizer as well.
    I got it up and running by:

    /etc/init.d/cron stop
    pkill cron (Make sure no cron processes are left.)
    Edit your crontab (crontab -e) and save it again.
    Then restart cron: /etc/init.d/cron start

    Maybe it works for you too.
     
  8. falko

    falko Super Moderator ISPConfig Developer

    If Hans' suggestion doesn't work - what's your ISPConfig version?
     
  9. dimitar

    dimitar New Member

    it works now. i have tried it in the very beginning...
    i use latest stable

    thanks for the help
     

Share This Page