HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   Awstats or Cron not working (http://www.howtoforge.com/forums/showthread.php?t=12425)

Check 30th April 2007 20:07

Awstats or Cron not working
 
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,

jnsc 30th April 2007 20:50

connect as root and type
Code:

crontab -l
What is the output?

Check 30th April 2007 21:28

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

jnsc 30th April 2007 22:26

Your crontab is ok.
Try to start cron and look if it's running
Code:

ps aux | grep cron

Check 30th April 2007 22:49

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


Check 3rd May 2007 15:53

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


All times are GMT +2. The time now is 19:38.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.