Skip to main content

How to Set Up a Scheduled Job (Cron Job) in Plesk

1. Log In to Plesk

Log in to the Cybrancee Plesk panel. Then, select the ‘Websites & Domains’ tab.

Cybrancee Plesk panel with Websites & Domains highlighted by a purple box and arrow.

2. Navigate to Scheduled Tasks

Select ‘Scheduled Tasks’ to view the tasks for your subscription.

Cybrancee panel Websites & Domains page with Scheduled Tasks outlined and indicated by an arrow.

3. Select ‘Settings’ to Set the Time Zone

Select ‘Settings’ to set the time zone your scheduled tasks run in. Plesk uses the server’s time zone by default. To change the time zone, select the ‘Use the time zone I specify’ button, then choose the correct time zone. After that, select ‘Apply’ to save your changes. Return to the task list after you check or update the time zone.

Cybrancee Plesk Scheduled Tasks page with the Settings button outlined and indicated by an arrow.

4. Select the Task Type

Select the ‘Add Task’ button. Then, select the option that matches the action your application requires:

Task TypeDescription
‘Run a command’Execute a command, executable file, or shell script.
‘Fetch a URL’Request a web address automatically.
‘Run a PHP script’Execute a PHP script stored in your hosting account.

Cybrancee Plesk Scheduled Tasks page with the Add Task button outlined in purple and indicated by an arrow.

5. Enter the Task Details

Configure a Command

Enter the command and the path to your executable or script, with any arguments required. If your server uses a restricted shell for scheduled tasks, your user home directory acts as the filesystem root. Use paths relative to that directory; executables outside the restricted environment are unavailable.

Configure a URL Request

Enter the complete web address needed. Be sure to enter only the address; do not add curl or wget.

Configure a PHP Script

Enter the script’s path relative to your virtual host directory, or use the file picker to locate it by selecting the folder icon. Add any arguments needed in the arguments box. For example, a script named cron.php inside httpdocs would use the path httpdocs/cron.php.

Cybrancee Scheduled Tasks form with task types outlined and an arrow pointing to the selections.

6. Configure the Schedule and Notifications

Select the frequency from the drop-down menu to the right of ‘Run’. Then complete the time and date controls displayed for that frequency. For example, select ‘Daily’ and enter the time to run the task once each day. Then, enter a short explanation of the task in ‘Description’. Under ‘Notify’, select one of the following options.

Notification OptionWhen a Notification Is Sent
‘Do not notify’No task notifications are sent.
‘Errors only’A notification is sent whenever a task errors out.
‘Every time’A notification is sent every time a task runs, no matter the output.

You can configure ‘Send notifications to’ to change who gets the notifications. Select ‘Subscription owner’ to use your email address, or select ‘Other users’ and enter the email addresses in the field below. You can separate multiple addresses with commas.

Cybrancee Plesk Scheduled Tasks form with schedule and notification settings outlined and indicated by an arrow.

7. Select ‘Run Now’ to Test the Task

Select ‘Run Now’ and wait for the task to finish. This executes the task immediately and lets you confirm that it is working.

Check the result. A notification should appear at the bottom right. It is recommended that you fix any runtime errors before saving the task. Here are some common errors and their fixes.

  • Verify the script or executable path for a “file not found” error.
  • Verify file access and execution permissions for a permission error. Refer to Understanding and Modifying File Permissions in Plesk.
  • Verify that the address is correct and accessible when a URL request fails.
Cybrancee Plesk task form with the Run Now button outlined and indicated by an arrow.

8. Save and Verify the Task

Select ‘OK’ to save the task. Confirm that the task appears in the task list with the schedule you configured. If you still need help, refer to Plesk’s official scheduled task documentation for additional details before opening a ticket.

Cybrancee Plesk task form with the OK button highlighted by a purple outline and arrow.
Was this article helpful?
Please Share Your Feedback
How Can We Improve This Article?
Table of Contents