Cron Job error

ricardo777

Verified User
Joined
Mar 29, 2012
Messages
89
Location
Netherlands
Sorry if this is the wrong forum.

I have problems with the cron jobs creation.

When I create a cron job I get the error:

Code:
Error Creating Cron Job

Details

crontab returned non zero value: "./data/users/admin/crontab.conf.tmp":1: bad command errors in crontab file, can't install.

Thanks
 
Something is wrong with your cronjob then. What are you putting in the fields?
 
Sorry for the late reaction.

I am putting in the field

*/5 * * * * php /home/admin/domains/domain.nl/public_html/cron.php

or

php /home/admin/domains/domain.nl/public_html/cron.php
 
Try changing it to:

cd /home/admin/domains/domain.nl/public_html/; php -q cron.php
 
whmcs cron setup with directadmin

Try changing it to:

cd /home/admin/domains/domain.nl/public_html/; php -q cron.php

May be another WHMCS user:

HTML:
/usr/bin/php -q /home/username/domains/testdomain.com/public_html/whmcspath/crons/cron.php
 
Back
Top