Having some Cron Job issues

zstrong

New member
Joined
May 11, 2008
Messages
2
I'm trying to set up a Cron Job for the first time ever, I think I must have done something wrong because it is not working. I've set it like this:

1 * * * * /usr/local/lib/php/home/USERNAME/domains/DOMAIN/public_html/test/cron.php

I have verified the script works by running it in the browser, but when set with this cron it does not run every "1" minute.

Any help appreciated. Thanks.
 
You need to run it through php instead of just running it by itself, and you also need the full path to php.

Jeff
 
first find the path to PHP on your server.

Then run something like:
Code:
1 * * * * /path/to/php /usr/local/lib/php/home/USERNAME/domains/DOMAIN/public_html/test/cron.phpp
where of course you replace /path/to/php with the path to your php executable.

Jeff
 
Back
Top