-
Notifications
You must be signed in to change notification settings - Fork 61
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.
- Log-in to your cPanel account
- Navigate to Advanced -> Cron Jobs
- Scroll down to "Add New Cron Job"
- Select the common setting "Once Per Minute"
- 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
- Log-in to your cPanel account
- Navigate to Advanced -> Cron Jobs
- Scroll down to "Add New Cron Job"
- Select the common setting "Once Per Minute"
- 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
- Log-in to your Webmin panel
- Navigate to System -> Scheduled Cron Jobs
- Click on "Create a new scheduled cron job"
- Set Execute cron job as to apache
- Set Command to
/usr/bin/php -q /var/www/html/_PATH_TO_YOUR_WEBENGINE_FILES_/includes/cron/cron.php
- Check Times and dates selected below ..
- Set Minutes, Hours, Days, Months, Weekdays to All
- Click Create
Note: Make sure you edit PATH_TO_YOUR_WEBENGINE_FILES with the path to your website files.