Articles on: Web hosting

How to create a scheduled task (CRON)?

In your Plesk panel go to the right menu and select Scheduled tasks:



On the next page all existing scheduled tasks appear, if you do not get the message No items found does not appear:



To create a new task, click Add Task :



You can choose to execute a command, access a specific URL or execute a PHP script:



In our example we will execute the cron.php file with the argument --argument every day at 3am under PHP version 7.3 :



You can choose the version of PHP of your choice for the launch of your cron task, it can be different from the one of your website.

You can test your cron task by clicking on Run Now

Updated on: 17/10/2022

Was this article helpful?

Share your feedback

Cancel

Thank you!