- Main Configuration Settings
- Content: Creating Stories, Blogs, Forums, Books, and Pages
- Blocks: Controlling Content in the Columns
- Comments: Adding to the Discussion
- Themes: Confinguring and Choosing Appearance
- Users: Configuring Site Access, Registration, and Posting
- Tracking and Statistics
- Specialized Modules and Features
- Enabling CivicSpace Automated Tasks: Configuring Cron Jobs
- Licensing & Acknowledgments
- CivicSpace Distribution Changes to Support Profiles
Enabling CivicSpace Automated Tasks: Configuring Cron Jobs
Submitted by admin on Wed, 2004-12-08 02:32.
Some CivicSpace modules, such as search, notify and aggregator, have periodic tasks that must be triggered by the script cron.php included with your CivicSpace installation. You can do this manually in your browser by visiting your cron URL page (a blank page will display once the cron tasks have been executed).
However, the better way to do this is to have cron.php executed automatically using the Linux/UNIX crontab function.
- The following example crontab line will activate the cron script
on the hour:0 * * * * wget -O - -q http://www.example.com/cron.php
- If your host has the text browser lynx on the system, make use of the file provided in your Drupal installation in scripts/. Edit scripts/cron-lynx.sh, subsituting the name of your site. Then setup a crontab every hour:
00 * * * * /home/www/drupal/scripts/cron-lynx.sh
Alternatively, Drupal has a poormanscron module available for download. However, this module is much less efficient in terms of system resources compared to the methods described above. The poormanscron module checks to see if cron needs to run every single time a page is viewed on the site.
More information about cron is available in the adminstration help page and at the Drupal Handbook Cron system and crontab page.
» printer-friendly version | login to post comments | 781 reads




