Cron Problems

axelT_me

New member
Joined
Jun 17, 2009
Messages
4
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:
Code:
/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.
 
If do you try this?

/usr/local/bin/php -q /home/username/domains/domain.com/public_html/cron.php
 
What is the directory for the cron logs?


As for:
Code:
/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!
 
Check it in your DA Contorl panel (admin level). That is the first in the Log Viewer. There is your cron log path.
 
Unable to read log.

Screenshot attached.
 

Attachments

  • xhd6A3C.tmp.jpg
    xhd6A3C.tmp.jpg
    120.5 KB · Views: 85
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".
 
Back
Top