Skip to content

Setting up the master cron job

Lautaro Angelico edited this page Dec 8, 2020 · 3 revisions

WebEngine CMS utilizes cron jobs (scheduled tasks) to keep your website information updated. To set-up the master cron job please follow the instructions below.

Add the master cron job to cPanel

  1. Log-in to your cPanel account
  2. Navigate to Advanced -> Cron Jobs
  3. Scroll down to "Add New Cron Job"
  4. Select the common setting "Once Per Minute"
  5. Add WebEngine's master cron path inside the "Command" field: /usr/bin/php -q /home/PATH_TO_YOUR_WEBENGINE_FILES/includes/cron/cron.php >/dev/null

Add the master cron job to cPanel + File Locker (flock) -- recommended

  1. Log-in to your cPanel account
  2. Navigate to Advanced -> Cron Jobs
  3. Scroll down to "Add New Cron Job"
  4. Select the common setting "Once Per Minute"
  5. Add WebEngine's master cron path inside the "Command" field: /usr/bin/flock -n /tmp/webengine.lock /usr/bin/php -q /home/PATH_TO_YOUR_WEBENGINE_FILES/includes/cron/cron.php >/dev/null

Add the master cron job to Webmin

  1. Log-in to your Webmin panel
  2. Navigate to System -> Scheduled Cron Jobs
  3. Click on "Create a new scheduled cron job"
  4. Set Execute cron job as to apache
  5. Set Command to /usr/bin/php -q /var/www/html/_PATH_TO_YOUR_WEBENGINE_FILES_/includes/cron/cron.php
  6. Check Times and dates selected below ..
  7. Set Minutes, Hours, Days, Months, Weekdays to All
  8. Click Create

Note: Make sure you edit PATH_TO_YOUR_WEBENGINE_FILES with the path to your website files.