Configuring the SugarCRM Cron Routine
SugarCRM uses a cron routine to automate background tasks such as sending email reminders, processing workflows, and updating dashboards. On ruachost.com, you must configure cron jobs correctly to ensure SugarCRM runs smoothly.
Why Configure Cron?
Section titled “Why Configure Cron?”- Automates scheduled tasks without manual intervention.
- Ensures workflows, reports, and notifications are processed on time.
- Improves overall system reliability and performance.
Steps to Configure the Cron Routine
Section titled “Steps to Configure the Cron Routine”Step 1: Log in to cPanel
Section titled “Step 1: Log in to cPanel”- Access your ruachost.com Client Area.
- Go to Advanced → Cron Jobs.
Step 2: Add a New Cron Job
Section titled “Step 2: Add a New Cron Job”-
Under Add New Cron Job, set the following values:
- Minute →
*/15(Shortest interval allowed on shared hosting is every 15 minutes. On VPS/Dedicated, you may use*for every minute.) - Hour →
* - Day →
* - Month →
* - Weekday →
*
- Minute →
-
In the Command field, enter:
Terminal window cd $HOME/public_html && /usr/local/bin/php -f cron.php >/dev/null 2>&1- Replace
$HOME/public_htmlwith the directory where SugarCRM is installed. - If installed in a subdirectory, specify that path instead (e.g.,
$HOME/public_html/sugarcrm).
- Replace
Step 3: Save the Cron Job
Section titled “Step 3: Save the Cron Job”- Click Add New Cron Job.
- Your account will now automatically run SugarCRM’s
cron.phpfile at the specified interval.
Important Notes
Section titled “Important Notes”- Always back up your site before editing cron settings.
- On shared hosting, the minimum interval is 15 minutes.
- On VPS/Dedicated servers, you can run cron jobs every minute for real‑time processing.
- Ensure PHP path (
/usr/local/bin/php) matches your hosting environment.