How often should I run cron and how to automate it using cpanel ?! What command line I need to use ?! I am considering automating cron using Poormanscron but not sure how often I should set it to run...

Comments

ishmael-sanchez’s picture

If you are running a news site or creating nodes with feedapi probably every 15 to 30 min. If you have a simple portfolio site every day or every couple of days. Some modules depend on cron: search, feedapi, xmlsitemap, notifications, and on. I would recommend setting it up using cpanel and not using Poormanscron if possible.

vincent sg’s picture

Configuring cron jobs for Drupal 6:
http://drupal.org/cron
http://drupal.org/node/369267

Drupal 7 will contain a built-in, automated cron run feature, which is triggered by site visitors.

eff_shaped’s picture

My hosting company told me the correct 'command' to create a cron job in my cpanel. Your host may have a different answer.

I put it together with the site path to cron.php:

/opt/curlssl/bin/curl -s http://mysite/cron.php

I run it once a day for the moment. Not a highly visited site (yet).