Initial Setup - Cron

Cron is a job scheduler program on Unix, that basically runs a program or script on a routine basis. Some shared hosting vendors do not allow cron access for security reasons (GoDaddy shared hosting). All that occurs is based on the frequency you determine the maintenance script is run on your server. The suggested frequency for Drupal is once a day. However if you are hosting up-to-the-minute news updates from other sites(news aggregation discussed in the next volume) you will want to increase the frequency to hourly or more often in a day.

To set this properly add this command to the cron job scheduler -

fetch -o output -q http://www.yourdomainname.com/cron.php

or

wget -O - -q http://www.yourdomainname.com/cron.php

The frequency of the job is determined by the schedule you set. Most unix cron schedulers accept 5 parameters to determine the schedule

 

*     *   *  *    *  command to be executed
-     -    -    -    -
|     |     |     |     |
|     |     |     |     +----- day of week (0 - 6)(Sunday=0)
|     |     |     +------- month (1 - 12)
|     |     +--------- day of month (1 - 31)
|     +----------- hour (0 - 23)
+------------- min (0 - 59)

 

minhourday/monthmonthday/week Execution time
30011,6,12*00:30 Hrs  on 1st of Jan, June &Dec.

:

020*101-58.00 PM every weekday (Mon-Fri)only in Oct.

:

001,10,15** Midnight on 1st ,10th & 15th of month

:

030***Recommended minimum schedule -This job will run at 00:30 Hrs every day of the month
:

You can find the cron job scheduler from with your control panel of your web host. If you shared web host does not provide a cron scheduler you can use a remote cron scheduling service as a work around.

Resources

 

Video

In this video you will see how to setup cron for your Drupal installation

back
next

33 Large Screen Training Video Course

Get all 33 large screen training videos like this one, absolutely
free ($99 value) used by over
250,000 Drupallers

Name
Email

Our Strict Privacy Policy keeps your e-mail safe and secure.

Request a Call

close
First Name
*
Last Name
*
Email
*
Mobile No
*
Alt Phone
*
Company
*
Comments
*
Sites leveraging social and community concepts...
Web applications in the business to business space...
Web applications in the business to consumer space...
Applications in the virtual learning media space...
Are you paying too much for proprietary CMS?
Read what factors led to our client's successes...
See what our satisfied clients say about us...
We have three flexible models for your business needs...

Top 10 Enterprise Open Source Applications

Top 10 Apps

close
First Name
*
Email
*