To create a scheduled task, log in to your control panel and then, in the Advanced box, go to Cron Jobs.

The Cron Jobs screen has several sections. First it will ask for an optional email address to report the execution of the scheduled task. If you don’t configure an email address the server will send the report to the address that cPanel creates by default.

In the second section we’ll see example information for creating the command that the task will execute. It’s very important to pay attention to these examples. Let’s look at each point:

- The example indicates that, depending on your PHP version, you should write the command
/usr/local/bin/ea-php99with the PHP version number you have. If your account uses PHP 8.0 you should write:/usr/local/bin/ea-php80
- In this section you must define how often your scheduled task will run. Use each dropdown menu to set this.
- Finally you’ll see the box where you should write the command to execute the scheduled task. This is where you should write the
/usr/local/bin/ea-phpcommand we saw in point 1.
- An example would be:
/usr/local/bin/ea-php80 /home/miUsuarioCpanel/public_html/miscript.php
The last section of Cron Jobs will show all the scheduled tasks you’ve created. You can edit or delete a task you’ve already created.
