Skip to main content

[Plesk] How To Schedule Tasks in Plesk

In this guide we will show how you can schedule tasks in your Plesk panel

Updated over 2 weeks ago

To run scripts on your hosting account at specific times, set them up in the Plesk task scheduler so they execute automatically.

1. Open Scheduled Tasks

Open "Website & Domains" in the left menu:

If the right sidebar is collapsed, click the sidebar show icon to expand it, then select "Scheduled Tasks":

You will see a list of scheduled tasks for your website, if any are configured.

2. Schedule task

To schedule your custom task, click "Add Task":

Then, choose the task type based on what you need to run. It can be:

  1. Command: Enter the full path to the executable you want to run. This can be a binary, shell script, or batch file.

  2. Fetch a URL: Enter only the URL. You do not need to include commands like curl or wget.

  3. Run a PHP script: Provide the script path relative to your virtual host directory. You can use the file selection icon to quickly find and select the script.

Next, choose how often the task should run and set the time and date. The time uses the server’s time zone by default; to change it, go to Websites & Domains --> Scheduled Tasks --> Settings. You can also add a description and configure notifications.

Please note: On Plesk for Linux, "Run a command" tasks run in a chrooted environment, so only paths relative to the system user’s home directory work. If you get “file not found” errors, avoid absolute paths.

3. Test the task

Before saving, you can test the task by clicking "Run Now". If it finishes with an error, it will also fail when run by the scheduler until you fix the issue.

Ensure the Active option is selected for the scheduled task to run.

Then, click "Ok" to complete scheduling the task.

Did this answer your question?