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:

floyd

Verified User
Joined
Mar 29, 2005
Messages
5,994
You probably need the full path to php on the line.
 

Scolpy

Verified User
Joined
Feb 25, 2009
Messages
142
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...
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
Try the same line from the command line (as the user whick should be running the cronjob), and watch for errors.

Jeff
 

Scolpy

Verified User
Joined
Feb 25, 2009
Messages
142
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
 
Top