PDA

View Full Version : Cron Problems



axelT_me
06-17-2009, 04:10 AM
Hi,

I own 2 site that need to run several crons at various times through the day and week. I have tried running the scripts in many ways but none of them work.

Currently they are at this form:

/usr/bin/lynx -dump 'http://www.domain.com/cron.php?pwd=aaaaaaa'

I have had this problem after moving from a hosting service with Cpanel to one with DirectAdmin, so this matter shouldn't be a script issue.

Thanks for your help in advance.

mr.applesauce
06-17-2009, 06:41 AM
Why dont they work? I wouldnt see any reason why they wouldnt work. Check logs.

WHI
06-17-2009, 09:14 AM
If do you try this?

/usr/local/bin/php -q /home/username/domains/domain.com/public_html/cron.php

axelT_me
06-17-2009, 04:41 PM
What is the directory for the cron logs?


As for:
/usr/local/bin/php -q /home/username/domains/domain.com/public_html/cron.php

I have tried it but doesn't work, it need the password at the end or the script won't let it work. But even then it won't run!

WHI
06-18-2009, 03:08 AM
What is the directory for the cron logs?

/var/log/cron

axelT_me
06-18-2009, 03:39 AM
/var/log/cron


Though it was. But this comes up.

-bash: cd: /var/log/cron: No such file or directory.

WHI
06-18-2009, 04:40 AM
Check it in your DA Contorl panel (admin level). That is the first in the Log Viewer. There is your cron log path.

axelT_me
06-18-2009, 06:07 AM
Unable to read log.

Screenshot attached.

tillo
06-18-2009, 07:20 AM
It depends on the distribution and configuration.
First, make sure vixie-cron (or any alternative) is actually installed and running. Then look into the /var/log/messages or /var/log/syslog or /var/log/debug files for lines containing "CRON".