Hello, Guest.

Cron Setup

Contents

Setup cron job

For JomSocial to run properly, you will need to set up a cron job to run periodically. By unloading some processing task to a scheduled job, JomSocial will be able to run faster and smoother.

The cron job is required to

  1. avoid excessive processing during a normal page load
  2. to send out system emails.
  3. archive old activity stream log that are no longer relevant
  4. converting uploaded videos to standardized .swf files.
  5. perform optional administrative job such as remove old, unused photo album, which doesn't have any photos

Built-in Cronjob option

Built-in Cronjob option Use this option if you are not using JomSocial video upload feature. By enabling this, JomSocial will process cron on every page load, with an interval 5 minutes in between. Avoid this option if your site is heavy with concurrent users (10+ users) at one time because it may have effect on performance. This option will only process email-related crons.

Avoid this option if you enable video upload feature and rely on other cronjob methods instead.

Linux Systems

On most Linux system, you can simply run the command below as often as you are comfortable. We would recommend to run it every 30 minutes of less. On a busy site, you might want to run it every 10 minutes. The more frequent you run it, the less load it will be on the server.

lynx -source "http://domain.com/index.php?option=com_community&task=cron" > /dev/null

lynx is a text based browser that is installed in most hosting environments. If you do not have lynx installed, you can use other alternatives such as wget as below,

wget -O /dev/null "http://domain.com/index.php?option=com_community&task=cron" > /dev/null

Don't worry, this operation actually run very fast and has very little impact on the server, equivalent to a normal single page load.


Setting up cronjob in CPanel 11

To add a new cronjob in CPanel 11 variants, logon to your CPanel and click on the "Cronjobs" link under the "Advanced" section as the screenshot below.

Image:cronjob1.jpg

Upon clicking on the cronjobs, you will then be directed to a page similar as below. In this example, click on the "Standard" button to proceed.

Image:cronjob2.jpg

Then on the screen below, enter the following options,

Commant to run: lynx -source "http://yoursite.com/index.php?option=com_community&task=cron" > /dev/null

- Select every 5 minutes, every hour, every day , every month and every weekdays so that the action above will be executed every 5 mins of the day, in any given month.

Image:cronjob3.jpg

Note: In order for the emails to be sent and videos to be converted, the scheduled task must be executed correctly.

Free Online Cron Scheduler

If you are still having trouble with the above options, use any free online cronjob scheduler service available on the web. Do not worry on security because what these sites do is merely accessing index.php?option=com_community&task=cron at certain interval, which is open to anyone.

Read more: http://www.jomsocial.com/webforum/viewtopic.php?f=20&t=5229

Docs Navigation

JomSocial Video Testimonial Contest. Top 5 best videos wins iPod Nano 4G.

Slashes & Dots Sdn. Bhd.
MALAYSIA OFFICE
No 1-7, Signature Office,
The Boulevard Mid Valley City,
Lingkaran Syed Putra,
59200 Kuala Lumpur, Malaysia.
U.S. OFFICE
251 West Central Avenue #146,
Springboro, Ohio 45066, U.S.A.

Tel: +60 (3) 2282-1997
Fax: +60 (3) 2283-1997
E-mail:
Copyright © 2007 - 2009 JomSocial.com. All rights reserved.
JomSocial is made for Joomla!
JomSocial Community Count

580 users currently online | 85049 forum posts