Awstats or Cron not working

Discussion in 'General' started by Check, Apr 30, 2007.

  1. Check

    Check New Member

    I have Ubuntu 6.06 perfect setup w/ awstats from http://jnsc.ch/ispconfig.php installed. Everything was fine until I decided to try to install cron-apt so that i didnt have to download the updates, I could just install them when i was ready. Well, since then the awstats havent been getting created, I unistalled cron-apt hoping that it would fix my problem but it didnt, and im not sure if its a problem with the awstats or with cron.

    Can someone help me with where i should begin. Im a little new at this so i dont really know where to start.

    Thanks in advance,
     
    Last edited by a moderator: Nov 6, 2008
  2. jnsc

    jnsc rotaredoM Moderator

    connect as root and type
    Code:
    crontab -l
    What is the output?
     
  3. Check

    Check New Member

    Thanks for your reply, this is what the output looks like.

    Code:
    root@Server1:/home/admin# 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
    0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php &> /dev/null
    
    EDIT:
    One other thing, I saw in another post this code
    Code:
    /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
    I tried that a couple of days ago and it did not work
     
    Last edited: Apr 30, 2007
  4. jnsc

    jnsc rotaredoM Moderator

    Your crontab is ok.
    Try to start cron and look if it's running
    Code:
    ps aux | grep cron
     
  5. Check

    Check New Member

    Heres the output for that

    Code:
    root@Server1:/home/admin# ps aux | grep cron
    root      9592  0.0  0.1   2116   840 ?        Ss   Apr25   0:00 /usr/sbin/cron
    root      2320  0.0  0.0   1604   428 ?        S    Apr29   0:00 /root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d
    root      8432  0.0  0.1   2876   796 pts/0    R+   15:49   0:00 grep cron
    
     
  6. Check

    Check New Member

    Before i didnt think about it, but just last night i thought to check the other stats page. They are up to date so this means that cron is working its just awstats that doesnt work.

    I think I just want to completely remove it. Its the awstats from http://jnsc.ch/ispconfig.php.

    How do I remove it from my server completely?

    Thanks
     
    Last edited by a moderator: Nov 6, 2008

Share This Page