CronJobs doesn't work

Scolpy

Verified User
Joined
Feb 25, 2009
Messages
142
Hello!

over a month my CronJobs doesn't work.

I'm WHMCS and I uses the CronJobs to run the WHMCS cron file every midnight - and few months I'd no problems at all but some day the CronJobs stop to working, even I didn't made any changes in my server.

I spent the last few weeks trying to resolve this problem - but without any success.

This my CronJobs command:
Code:
php -q /home/*username*/domains/*domain*/private_html/cron.php
and this cron should run every minute, but it's doesn't work(it's work just if I navigate directly via browser to this file).

How Can I resolve this issue?

Thanks!
Yonatan :)
 
Last edited:
You probably need the full path to php on the line.
 
You probably need the full path to php on the line.
I also tried:

Code:
/usr/local/bin/php -q /home/*username*/domains/*domain*/private_html/cron.php

but it's doesn't work...
 
Try the same line from the command line (as the user whick should be running the cronjob), and watch for errors.

Jeff
 
Try the same line from the command line (as the user whick should be running the cronjob), and watch for errors.

Jeff
I resolved this problem.
probably, using the full path to php:
Code:
/usr/local/bin/php -q
fixed the problem(just now I see that this cron-command actually works).

By the way,
there is any command to see all defined CronJobs in the server?

Thanks!
Yonatan
 
Back
Top