Cronjob/Schedule is required for JoomGrabber to be run automatically. It can be set up to run as script from the JoomGrabber Component Settings area. If you don't want to run it as script-side, you can set it run under server side by following this instruction.
The instruction below is for hosting with cPanel. The others, it is pretty the same.
To setup cronjob for cPanel, just follow 2 simple steps
Step 1: Accessing cPanel
Setting up cronjobs in Cpanel is really easy. All you need to do is to login to your cPanel account and click on the Cronjobs icon as shown in the diagram below.
Step 2: Creating the cronjob
Upon clicking on the cronjob icon, you will be presented with the following screen. You will need to enter the following
The settings are broken down into the following:
- Minute - Enter the interval for minute. The example above uses "*/5" which means the script is executed every 5 minutes
- Hour - Enter the interval for minute. The example above uses "*" which means the script is executed every hour
- Day - Enter the interval for minute. The example above uses "*" which means the script is executed every day
- Month - Enter the interval for minute. The example above uses "*" which means the script is executed every month
- Weekday - Enter the interval for minute. The example above uses "*" which means the script is executed every week
- Command - In the example above, we are running the following command
Using Wget
/bin/wget -O /dev/null "http://yourjoomlasite.com/index.php?option=com_joomgrabber&task=callaio"
Using Wget with secret key
/bin/wget -O /dev/null "http://yourjoomlasite.com/index.php?option=com_joomgrabber&task=callaio&secretkey=your_secret_key_here"
Using CLI
crontab -e */5 * * * * /usr/bin/php "/path/to/joomla/cli/joomgrabber_cli.php"
You will need to get the correct path to "wget" and replace the domain name above with your site's domain. Not every hosting has it in /bin/wget
In the case above command doesn't work, you can use an alternative command:lynx -dump 'http://yourjoomlasite.com/index.php?option=com_joomgrabber&task=callaio'
Don't forget to replace the domain name by your one.