Articles on: Setup & Configuration

How To Set Up Cron Job

To manually set up the Cron Job on Clientexec:

First, you can find your cron job command at Settings > Plugins > Automation Services.

Copy this so you can use it when you setup a cron job to run in cPanel, Directadmin, etc.

Typically, the cron job command to setup would be:

php -q /path/to/ce/cron.php

where /path/to/ce would be /home/username/public_html/cedirectory/

Sometimes, webhosts setup servers differently - so the cron may have to be modified, for example ...

/usr/local/bin/php -c /home/My-Account-Name/public\_html/php.ini -q /home/My-Account-Name/public\_html/cedirectory/cron.php

The cron should be set to run every minute (\* \* \* \* \*)

In these cases, it is best to check with your webhost how to setup the cron correctly. Here is one for BlueHost & JustHost.

In the Run Schedule fields you can enter any format accepted by the Cron utility.

For example for the field Minute:

\* : every minute
Number: e.g. 4 will make it run at :04
Range: e.g. 1-3 will make it run at :01, :02, :03
List: e.g. 1,3,7 will make it run at :01, :03, :07
Step: e.g. \*/3 will make it run every third minute
Range and step: 0-30/2 will make it run every other minute till :30

In Day of the Week you can enter a number in the range 0-6 (0 for Sunday) or a 3 letter shortcut (e.g. sun).

Back on Settings > Plugins > Automation Services in the dropdown you can manually select which services you need to have run for your specific set up and how often or when you want those specific crons to run.

Updated on: 30/03/2023

Was this article helpful?

Share your feedback


Thank you!