Canadian Webhosting Forums Forum Index Canadian Webhosting Forums
Discussion Forums
 
 FAQFAQ   SearchSearch      RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Cron Jobs

 
Post new topic   Reply to topic    Canadian Webhosting Forums Forum Index -> General Help
Author Message
AdMan



Joined: 17 Jan 2006
Posts: 9

PostPosted: Tue Jul 31, 2007 9:25 am    Post subject: Cron Jobs Reply with quote

I am setting up some cron jobs ...

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

OR

/www/program.php
Back to top
kevin
CWH Staff


Joined: 13 Dec 2004
Posts: 209
Location: Vancouver, BC

PostPosted: Fri Aug 10, 2007 4:32 pm    Post subject: Reply with quote

Hi,

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



Joined: 17 Jan 2006
Posts: 9

PostPosted: Fri Feb 29, 2008 10:00 am    Post subject: resources to learn about cron jobs Reply with quote

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?
Back to top
divya
CWH Staff


Joined: 24 Jul 2007
Posts: 47

PostPosted: Sat Mar 01, 2008 9:24 pm    Post subject: Reply with quote

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
Back to top
AdMan



Joined: 17 Jan 2006
Posts: 9

PostPosted: Sun Mar 02, 2008 4:13 am    Post subject: Reply with quote

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?
Back to top
smisha
CWH Staff


Joined: 31 Aug 2007
Posts: 4

PostPosted: Sun Mar 02, 2008 11:15 am    Post subject: Reply with quote

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Canadian Webhosting Forums Forum Index -> General Help All times are GMT - 8 Hours
Page 1 of 1

 


Hosting Plans :: Flash Tutorials :: Contact Us :: Privacy Policy


Powered by phpBB, MySQL and PHP