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
- Login to Plesk via the Control Panel or directly into the Plesk server if it’s a VPS.
- Once you have logged in to Plesk, click on the “Websites and Domains” tab.
- From the right hand menu, click on “Scheduled Tasks”.
- Click on “Add Task”.
- 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:
- 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.
- Ensure that the option “Active” is ticked, then click OK to save and activate.
- Now, you should see the task you created under the scheduled task list.