Loading...


bookmark - How To Configure Cron Jobs?

How To Configure Cron Jobs?

 
 Discussion by Ousk with 7 Replies.
 Last Update: March 19, 2009, 10:17 am
 
bookmark - How To Configure Cron Jobs?  
Quickly Post to How To Configure Cron Jobs?  w/o signup Share Info about How To Configure Cron Jobs?  using Facebook, Twitter etc. email your friend about How To Configure Cron Jobs? Print
Reply / Comment New Discussion / Topic Share / Bookmark E-Mail a Friend Print

Ok so i have seen the topic about this and in cpanel chose advanced and wrote /usr/local/bin/php -q /home/*myusername*/public_html/cron.php in the field and 40 in the minute slot in front, but with no luck, still the cron job for drupal does not run. Why? :D










   Sun Mar 15, 2009    Reply         

Try this: wget -O - -q -t 1 http://your.website.com/cron.php

And for the timing - I don't see how you would need to run cron more than once a day, so probably pick any values for minute/hour and *'s for the other fields.

   Sun Mar 15, 2009    Reply         

not working but thx for the reply

   Sun Mar 15, 2009    Reply         


The real deal to me is, in the Advanced Mode:

* * * * * (Set to which hour, etc, date) : curl http://URL.com

Try if that works for you, it works for me.

   Sun Mar 15, 2009    Reply         

don't really get what i should enter i tried it but.. no results i think i'll just use poormanscron

   Mon Mar 16, 2009    Reply         

I would apreciate if anyone could help a litle more please, i too must know how to create cron jobs, i did not search the internet yeat because i wanted to get help over here, so if anyone could explain how , i apreciate it, i have a wordpress blog which needs a cron job because of a plugin i have, and it gave a code create a cron job, but i do not know where to execute or insert that code for the cron job.

Can anyone tell me where i do execute code already given to create a cron job?








   Mon Mar 16, 2009    Reply         


I'm assuming cron.php contains list of instructions? Remember that cron itself has standard commands such as copy, "cp" with command extensions, i.e. r for replace etc.

And the correct path name you should use is

/home/cpanel_name/public_html/cron.php

if the file you want to execute is within public_html folder.

/home/cpanel_name/cron.php

if the file is located outside public_html folder.

A simple example to copy a file over, writing over the existing file from location A to B:

cp -rf /home/cpanel_name/public_html/A/filename /home/cpanel_name/B/

Notice that I can copy outside of the public_html because /home/cpanel_name/ is my root directory. The same file name will be preserved and the existing file in location B will be overwritten without confirmation. This can be entered directly to Cron job using Standard method. No need to enter Unix command form.

   Mon Mar 16, 2009    Reply         

hmm now it works with the /usr/local/bin/php -q /home/*myusername*/public_html/cron.php don't know why it didn't before. i use
0 12 * * * /usr/local/bin/php -q /home/*myusername*/public_html/cron.php and it runs every 12 hours

   Thu Mar 19, 2009    Reply         

Quickly Post to How To Configure Cron Jobs?  w/o signup Share Info about How To Configure Cron Jobs?  using Facebook, Twitter etc. email your friend about How To Configure Cron Jobs? Print
Reply / Comment New Discussion / Topic Share / Bookmark E-Mail a Friend Print

Similar Topics:

Cron Jobs - Cron Jobs In Cpanel

How to setup Basic Cron Jobs. Ok. Many people are yelling that they cannot configure the crons properly. Here is a short tutorial which will help you set them. I have tried my best to explain the con ...more

   26-Jan-2005    Reply         

Cron Jobs Not Working In Cpanel

Hi, I need to setup a cron job but cPanel says there is an problem with cron: '/usr/bin/crontab permissions are wrong. Please set to 4755 ' Can you please chmod /usr/bin/crontab to 4755 on the alpha server? Thanks in advance. SSH as root an ...more

   19-Jan-2009    Reply         

Cron Jobs

Hey guys, hoping someone can help out with this. Basically I just want to set up a cron job on my server (using ComputingHost). Based on what I was reading, we should be adding a script like the following: /home/(AccountName)/public_html/CronScript.php In the a ...more

   02-Oct-2011    Reply         

Purchasing A Domain Via Xisto Honesty ROCKS ! Truth Rules ;) cool nah ...   Purchasing A Domain Via Xisto Honesty ROCKS ! Truth Rules ;) cool nah ... (6) (2) The Server Is Too Busy To Handle Your Request   The Server Is Too Busy To Handle Your Request