Page 1 of 1

Cron Jobs

PostPosted: Tue Jul 31, 2007 10:25 am
by AdMan
I am setting up some cron jobs ...

What should the command line be?
http://www.site.com/program.php

OR

/www/program.php

PostPosted: Fri Aug 10, 2007 5:32 pm
by kevin
Hi,

Login to your control panel and click Cron Jobs to enable scheduling.

resources to learn about cron jobs

PostPosted: Fri Feb 29, 2008 11:00 am
by AdMan
I am still having difficulty getting a cron job to run...

Does it make a difference if you put the path as follows:
php /home/mypath/public_html/program.php

vs

php /home/mypath/www/program.php


here's the string of how I've got my cron job set up:
php '/home/mypath/public_html/program.php';

This doesn't seem to work.
Is it a setting in the program that I should be looking at?

Are there any good online resources that I can check out to learn more about debugging cron jobs with cpanel?

PostPosted: Sat Mar 01, 2008 10:24 pm
by divya
Hello,

php /home/mypath/public_html/program.php
vs
php /home/mypath/www/program.php

doesn't make any difference since www is just a symbolic link to public_html.

Kindly try modifying the cronjob as:
/usr/local/bin/php /home/mypath/public_html/program.php

If you are still getting any errors, please drop a mail to support@canadianwebhosting.com and we will look into it.

Regards,
Divya

PostPosted: Sun Mar 02, 2008 5:13 am
by AdMan
I was using the following format:
php '/home/mypath/public_html/program.php';

with the single quotes and semicolon: because I saw that somewhere else.
Do I need these extras with the string?

PostPosted: Sun Mar 02, 2008 12:15 pm
by smisha
Hello,

There won't be any single quotes/semicolon with the cronjob string.

Please use the format show below to set the cronjob.

/usr/local/bin/php /home/mypath/public_html/program.php

If you still encounter any issues, please drop a mail to support@canadianwebhosting.com.

Regards,
Smisha