Overview

The following article demonstrates how to set up a scheduled task (cron job) in Plesk.. This is required for some sites which require a scheduled task for mailouts, updates and any other maintenance tasks.

Instructions

  1. Login to Plesk via the Control Panel or directly into the Plesk server if it’s a VPS.
  2. Once you have logged in to Plesk, click on the “Websites and Domains” tab.
    how to set up a scheduled task (cron job) in plesk
  3. From the right hand menu, click on “Scheduled Tasks”.
    how to set up a scheduled task (cron job) in plesk
  4. Click on “Add Task”.
    how to set up a scheduled task (cron job) in plesk
  5. Select the PHP script to run, the command to run or the URL to fetch. In most instances, this will be the PHP script to run:
    how to set up a scheduled task (cron job) in plesk
  6. Choose how often you wish the task to run and also at what time. If you need more flexibility compared to every hour or every day, you can use the Cron style and enter the details in standard UNIX cron format. A handy site to generate this is crontab.guru.
  7. Ensure that the option “Active” is ticked, then click OK to save and activate.
    how to set up a scheduled task (cron job) in plesk
  8. Now, you should see the task you created under the scheduled task list.
    how to set up a scheduled task (cron job) in plesk
Was this article helpful?

Related Articles