Adding a task to the Cron scheduler
Before adding a task, we need to check what version of PHP the domain is using.
The PHP version is indicated opposite the added domain.
On the screenshot we see the domain version php7.0 - we remember it.
Go to the Scheduler section, a page with the task editor opens.
Point by point:
- The main field in which the complete task is written with all parameters and execution time.
- If you need to add multiple tasks, click + to add a new row. Click Edit Table to save the scheduler task.
- A tool for setting task execution times. The first field shows examples of commonly used start times. The remaining fields are intended for more precise settings.
- Select the PHP path. The PHP path is selected based on the domain's PHP version. For this purpose, we previously remembered the domain's PHP version. Below the table, information on which path is for which PHP version is shown.
Attention
If you're adding ionCube-encoded files to a task, don't add the -n switch, as this disables ionCube and your script simply won't work.