Jump to content

Question

3 answers to this question

Recommended Posts

  • 0
Posted

The Cron Command is an example command derived from what Blesta knows about the system it is installed on. It is not a setting that controls the cron or relates in any way to an actual cron job. A cron job would need to be setup on the server separately (e.g. through cPanel).

The Cron Key is a unique key you can use to run the cron manually in Blesta. It should be kept secret so that others cannot run the cron. It is not required when a cron job runs via CLI mode, but it is when you click the "Run Cron Manually" button as shown in your screenshot.

I would recommend you do the following:

  1. Click "Generate Code" to create a new cron key.
  2. Click "Update Cron Key" to save that change.
  3. Create a cron job on your server. This is done outside of Blesta, typically through a control panel (e.g. cPanel) or via command line. This is where you would set the frequency to 15 minutes, and you can use the example "Cron Command" as a reference to what to set for the cron job.
    1. The "Cron Command" field in Blesta will still show 5 minutes (i.e. "* /5 * * * *") because it is only an example.
  4. Verify the cron has been running successfully by checking the last run time for automation tasks under Settings > Company > Automation.
  • 0
Posted
1 hour ago, Tyson said:

The Cron Command is an example command derived from what Blesta knows about the system it is installed on. It is not a setting that controls the cron or relates in any way to an actual cron job. A cron job would need to be setup on the server separately (e.g. through cPanel).

The Cron Key is a unique key you can use to run the cron manually in Blesta. It should be kept secret so that others cannot run the cron. It is not required when a cron job runs via CLI mode, but it is when you click the "Run Cron Manually" button as shown in your screenshot.

I would recommend you do the following:

  1. Click "Generate Code" to create a new cron key.
  2. Click "Update Cron Key" to save that change.
  3. Create a cron job on your server. This is done outside of Blesta, typically through a control panel (e.g. cPanel) or via command line. This is where you would set the frequency to 15 minutes, and you can use the example "Cron Command" as a reference to what to set for the cron job.
    1. The "Cron Command" field in Blesta will still show 5 minutes (i.e. "* /5 * * * *") because it is only an example.
  4. Verify the cron has been running successfully by checking the last run time for automation tasks under Settings > Company > Automation.

is there any example set up in cpanel.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...