{"id":22465,"date":"2026-11-20T13:00:00","date_gmt":"2026-11-20T12:00:00","guid":{"rendered":"https:\/\/webhosting.de\/?p=22465"},"modified":"2026-11-17T00:00:53","modified_gmt":"2026-11-16T23:00:53","slug":"manage-plesk-scheduled-tasks-and-cron-jobs-safely","status":"publish","type":"post","link":"https:\/\/webhosting.de\/en\/plesk-scheduled-tasks-cronjobs-sicher-verwalten\/","title":{"rendered":"Plesk Scheduled Tasks: Setting Up and Monitoring Cron Jobs Safely"},"content":{"rendered":"<div class=\"wh-article\" data-wh-layout=\"2.1.2\" style=\"width:100%;max-width:820px;margin:0 auto;color:#263b4b;font-family:inherit;font-size:18px;line-height:1.8;text-align:start;overflow-wrap:break-word;box-sizing:border-box\"><p class=\"wh-lead\" style=\"font-size:20px;line-height:1.7;color:#233746;margin:0 0 1.1em\">You can set up a Plesk cron job via \u201eScheduled Tasks\u201c by selecting the appropriate task type, configuring its settings, and defining a schedule. The key factor is the <strong style=\"font-weight:700;color:inherit\">Execution Context<\/strong>: PHP scripts, HTTP calls, and commands require different environments and permissions. Also check the configured time zone and the task's output. On Linux and Windows, parts of the scheduling syntax differ; an \"immediate run\" actually executes the task and is not a non-binding preview.  <\/p>\n<nav class=\"wh-toc\" aria-label=\"Contents of this article\" style=\"display:block;margin:28px 0 38px;padding:22px;border:1px solid #d9e4e8;border-radius:14px;background:#f4f8f8\"><p class=\"wh-toc-title\" style=\"font-size:13px;font-weight:700;letter-spacing:.08em;color:#49656b;margin:0 0 14px\">Go directly to the section<\/p><div class=\"wh-toc-grid\" style=\"display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:10px\"><div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#grundlagen-zugang\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">Understanding Scheduled Tasks in Plesk<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#aufgabentypen\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">PHP script, URL, or command?<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#ausfuehrungskontext\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">Check Permissions and Runtime Environment<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#aufgabe-einrichten\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">Setting Up a PHP Task Step by Step<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#zeitplan-konfigurieren\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">Set the Schedule and Time Zone<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#typ-vergleich\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">A Practical Comparison of Question Types<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#betrieb-kontrolle\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">Monitor Execution and Notifications<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#fehlersuche\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">Systematically Narrow Down Errors<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#sichere-entscheidung\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">Carefully weigh the pros and cons of changes<\/a><\/div>\n<\/div><\/nav><section class=\"wh-section\" aria-labelledby=\"grundlagen-zugang\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"grundlagen-zugang\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Understanding Scheduled Tasks in Plesk<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">With scheduled tasks, you can have a designated application start at specified times without having to trigger each run yourself in the control panel. This is useful, for example, for a maintenance script that the application specifically provides for this purpose. Plesk manages the schedule and the startup; the application determines what changes each run causes. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">You'll need Plesk access with permissions for scheduled tasks, an associated subscription or domain, and a suitable file or application. Check the documentation beforehand to see which execution mode and interval are supported. Not every script that can be run in a browser is also suitable for a scheduled command-line launch.<\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">In the <strong style=\"font-weight:700;color:inherit\">Domain View<\/strong> You can access the tasks via \u201eDomains &gt; example.com &gt; Scheduled Tasks\u201c or the corresponding translated menu item. Administrators can also use \u201eTools &amp; Settings &gt; Scheduled Tasks\u201c to manage tasks for different subscriptions as well as at the server level. Which views and features are visible depends on the user\u2019s role, permissions, and server configuration.  <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">In Linux, this type of scheduled task is often referred to as a cron job. Plesk Scheduled Tasks is also available on Windows, but this does not mean the shell or scheduling syntax is identical. Therefore, when setting it up, it is crucial to consider which operating system the server is running and what options your specific Plesk interface offers. <\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"aufgabentypen\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"aufgabentypen\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">PHP script, URL, or command?<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">The task type you select determines how Plesk launches the application. \u201eRun a PHP script\u201c is suitable for an existing PHP script that, according to the application documentation, is intended for the command line. You enter the script path and any arguments separately and select an appropriate PHP version; the field does not expect a complete shell command. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">One example is a PHP maintenance script provided by the application that regularly processes internal data. The selected PHP version must meet the script's requirements. However, a script that requires a browser session or a specific web server environment cannot be reliably run as a CLI script simply by selecting this task type.<\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">\u201eFetch a URL\u201c sends a <strong style=\"font-weight:700;color:inherit\">HTTP request<\/strong> to a designated endpoint. This is appropriate if the application explicitly supports maintenance requests via the web. Enter the full provided address in the URL field\u2014do not include any additional `curl` or `wget` commands. Determine in advance how to access the endpoint and, if necessary, how to authenticate. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">A web request is not the direct execution of a CLI script: the web server, network, and application each process it in their own way. Even a successful HTTP response does not automatically prove that the desired business logic has been completed. To verify this, you must rely on the feedback or result verification provided by the application.<\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">\u201eRun a command\u201c is intended for a program or script that acts as a <strong style=\"font-weight:700;color:inherit\">Command<\/strong> should be launched, such as an explicitly documented CLI tool for the application. This option offers flexibility but requires a compatible command line and a suitable environment. Use the syntax provided in the application documentation and verify that the program is accessible to the user running it. <\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"ausfuehrungskontext\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"ausfuehrungskontext\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Check Permissions and Runtime Environment<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">A correct schedule alone is not enough: The task runs within a specific <strong style=\"font-weight:700;color:inherit\">Execution Context<\/strong>. This includes the system user, their file permissions, and the programs and paths available to them. In the administrative view, you can select the system user for the task. Give them only the permissions they actually need, rather than using root as a precaution. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Suppose a maintenance script needs to read a file in the application directory and write a result there. In that case, the user running the script must be able to access both locations with the necessary permissions. The fact that you can see the file yourself in the control panel does not prove that the same access is possible in the context of the scheduled task.<\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">On Linux, a <strong style=\"font-weight:700;color:inherit\">chroot environment<\/strong> Restrict the file scope visible to tasks. A program or path that exists outside this environment is therefore not necessarily available within it. If a command fails, first check the task type and the environment that is actually available, rather than making the shell available server-wide without chroot. <\/p>\n<figure class=\"wp-block-image size-large wh-figure\" aria-describedby=\"wh-caption-detail2\" style=\"display:block;float:none;clear:both;width:100%;max-width:760px;margin:34px auto 40px;border:1px solid #dae5e9;border-radius:14px;overflow:hidden;background:#f5f8fa;box-shadow:0 10px 28px -17px rgba(24,47,60,.28);box-sizing:border-box\"><div class=\"wh-figure-media\" style=\"display:block;background:#eef3f5;line-height:0\"><img loading=\"lazy\" width=\"800\" height=\"534\" src=\"https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/linux-chroot-dateibereich-8b5057bd-detail2-33fa091464-1024x683.webp\" class=\"wp-image-22469\" alt=\"AI-generated illustration of file icons inside and outside a defined area\" decoding=\"async\" srcset=\"https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/linux-chroot-dateibereich-8b5057bd-detail2-33fa091464-1024x683.webp 1024w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/linux-chroot-dateibereich-8b5057bd-detail2-33fa091464-300x200.webp 300w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/linux-chroot-dateibereich-8b5057bd-detail2-33fa091464-768x512.webp 768w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/linux-chroot-dateibereich-8b5057bd-detail2-33fa091464-18x12.webp 18w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/linux-chroot-dateibereich-8b5057bd-detail2-33fa091464.webp 1536w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" ><\/div><figcaption class=\"wh-caption\" id=\"wh-caption-detail2\" style=\"display:block;margin:0;padding:12px 18px 15px;border-top:1px solid #dce5e9;color:#506575;background:#f5f8fa;font-size:14px;line-height:1.55;text-align:start\">AI-generated illustration: A chroot environment restricts the file system visible to a task.<\/figcaption><\/figure><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">For \u201eRun a PHP script,\u201c the selected PHP version is relevant in addition to the script path. According to Plesk Support, under Linux, the domain's individual PHP settings do not automatically apply; instead, the global settings of the PHP handler being used apply. As a result, a script may encounter different memory limits or extension settings than when it is executed via the website. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">If discrepancies arise, first compare the application's requirements with the task's version, handler, and permissions. Switching to a custom command or making a global configuration change is not a one-size-fits-all solution and may raise additional security concerns. General measures for securing access are supplemented by the article on <a href=\"https:\/\/webhosting.de\/en\/hosting-control-panel-security-whm-cpanel-tips-hartung\/\">Security of Hosting Control Panels<\/a>.<\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"aufgabe-einrichten\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"aufgabe-einrichten\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Setting Up a PHP Task Step by Step<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">In the domain view, open \u201eDomains &gt; example.com &gt; Scheduled Tasks\u201c and create a new task. The labels displayed may vary depending on the language and your permissions. Select \u201eRun a PHP script\u201c if the application provides a command-line-compatible PHP script for this task.  <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Under \u201eScript path,\u201c enter the <strong style=\"font-weight:700;color:inherit\">Script path<\/strong> for example, <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">httpdocs\/bin\/beispiel.php<\/code>. This is just a placeholder: The actual path depends on your installation and view. Do not enter a complete PHP command in this field; doing so may result in the error message \u201eCould not open input file.\u201c. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">The \u201ewith arguments\u201c field remains empty unless the application requires arguments. Otherwise, enter the required information from its documentation. Then select a PHP version that is compatible with the application: The script path, arguments, and version are separate settings and serve different purposes. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">On Linux, the domain's individual PHP settings do not automatically apply to this type of task. Instead, the global settings of the PHP handler being used are relevant. Therefore, if the behavior differs from that of the website, check the required extensions and the memory limit in particular before changing the application or server configuration. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Set a schedule and a detailed description, and configure the notification so that you\u2019ll be alerted to any errors. After saving, \u201eRun Now\u201c can start the task immediately. This is a real run: Check beforehand whether the script modifies data or sends messages. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">After running the program immediately, check the output and the expected result of the application. Even a successful run does not prove that the subsequent schedule will match the desired time zone or that the business result is correct. Any error reported during this process should be corrected before the scheduled execution. <\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"zeitplan-konfigurieren\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"zeitplan-konfigurieren\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Set the Schedule and Time Zone<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">A schedule specifies when Plesk starts a task; the task type and its settings determine what is executed. For \u201eCron style,\u201c there are five fields for minute, hour, day of the month, month, and day of the week\u2014in exactly that order. An asterisk represents all valid values for the respective field. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">To set a five-minute interval in Linux, enter <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">*\/5 * * * *<\/code> into the schedule field. On Windows, use <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">0,5,10,15,20,25,30,35,40,45,50,55 * * * *<\/code>. Plesk notes that the forward slash is not allowed in this schedule format on Windows. Both entries are schedules, not terminal commands or complete task configurations. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Always check the configured setting before entering <strong style=\"font-weight:700;color:inherit\">Time zone<\/strong>. Generally, the server's time zone takes precedence; however, you can select a different time zone in the settings for scheduled tasks. A schedule based on your local time may therefore run at the wrong time if the settings do not match. <\/p>\n<figure class=\"wp-block-image size-large wh-figure\" aria-describedby=\"wh-caption-detail1\" style=\"display:block;float:none;clear:both;width:100%;max-width:760px;margin:34px auto 40px;border:1px solid #dae5e9;border-radius:14px;overflow:hidden;background:#f5f8fa;box-shadow:0 10px 28px -17px rgba(24,47,60,.28);box-sizing:border-box\"><div class=\"wh-figure-media\" style=\"display:block;background:#eef3f5;line-height:0\"><img loading=\"lazy\" width=\"800\" height=\"534\" src=\"https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/zeitplan-zeitzone-uhren-8b5057bd-detail1-bd65d63262-1024x683.webp\" class=\"wp-image-22468\" alt=\"AI-generated stock image of two analog clocks with different hand positions on a desk\" decoding=\"async\" srcset=\"https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/zeitplan-zeitzone-uhren-8b5057bd-detail1-bd65d63262-1024x683.webp 1024w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/zeitplan-zeitzone-uhren-8b5057bd-detail1-bd65d63262-300x200.webp 300w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/zeitplan-zeitzone-uhren-8b5057bd-detail1-bd65d63262-768x512.webp 768w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/zeitplan-zeitzone-uhren-8b5057bd-detail1-bd65d63262-18x12.webp 18w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/zeitplan-zeitzone-uhren-8b5057bd-detail1-bd65d63262.webp 1536w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" ><\/div><figcaption class=\"wh-caption\" id=\"wh-caption-detail1\" style=\"display:block;margin:0;padding:12px 18px 15px;border-top:1px solid #dce5e9;color:#506575;background:#f5f8fa;font-size:14px;line-height:1.55;text-align:start\">AI-generated stock image: The time zone shown may not match the local time.<\/figcaption><\/figure><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">The minute interval alone does not indicate whether the interval is suitable for the application. If a processing task takes longer than five minutes, the next run can begin while the previous one is still in progress. For tasks that process the same data, this can result, for example, in conflicting changes or duplicate processing.<\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Select the interval based on the application's requirements and its expected runtime. Also, check whether the application has adequate protection against <strong style=\"font-weight:700;color:inherit\">overlapping runs<\/strong> is provided, or whether such protection must be established separately. A tighter schedule is not automatically better if it causes the processing operations to compete with one another.<\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"typ-vergleich\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"typ-vergleich\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">A Practical Comparison of Question Types<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">The appropriate task type depends on the interface your application uses for scheduled processing. The following overview shows what input Plesk expects in each case and where you should start troubleshooting if a task fails. <\/p>\n<div class=\"wh-table-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"Plesk Task Types by Input and Execution Method\" style=\"width:100%;max-width:100%;overflow-x:auto;margin:28px 0;border:1px solid #dce5e9;border-radius:14px;background:#fff;box-shadow:0 10px 28px -16px rgba(24,47,60,.32);box-sizing:border-box\"><table style=\"width:100%;min-width:580px;border-collapse:separate;border-spacing:0;border:0;margin:0;font-size:15px;line-height:1.6;background:#fff\"><caption style=\"padding:20px;text-align:start;font-size:17px;line-height:1.5;font-weight:700;color:#173246;background:#fff\">Plesk Task Types by Input and Execution Method<\/caption><thead><tr><th scope=\"col\" style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#19394d;color:#fff\">Question Type<\/th><th scope=\"col\" style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#19394d;color:#fff\">Use case<\/th><th scope=\"col\" style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#19394d;color:#fff\">Input<\/th><th scope=\"col\" style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#19394d;color:#fff\">Execution Context<\/th><th scope=\"col\" style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#19394d;color:#fff\">Common source of errors<\/th><\/tr><\/thead><tbody><tr><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Run a PHP script<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">PHP script suitable for the CLI<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Script path, optional arguments, and PHP version<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Execution with the selected PHP version<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Incorrect script path<\/td><\/tr><tr><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">Fetch a URL<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">Scheduled Maintenance End Point<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">Full URL<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">HTTP request to the endpoint<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">Incorrect or unreachable URL<\/td><\/tr><tr><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Run a command<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">The application's command-line tool<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Program or command<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">System Users and Available Shell Environments<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Program not available in this context<\/td><\/tr><\/tbody><\/table><\/div><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">With \u201eFetch a URL,\u201c the address itself goes in the URL field\u2014without any prefix. <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">curl<\/code>- or <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">wget<\/code>-command. First, check whether the application explicitly supports this HTTP request, how the endpoint can be reached, and which <strong style=\"font-weight:700;color:inherit\">Authentication<\/strong> is required. A web request is not a direct call to the script from the command line. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">For example, when an endpoint is called, it may trigger a processing operation without the successful HTTP response alone serving as proof of the business outcome. To verify this, check the output or logs provided by the application. Access tokens should not be included in publicly viewable descriptions or example URLs; consult the application documentation to determine how access credentials should be securely transmitted.<\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">\u201eRun a command,\u201c on the other hand, is suitable for a command-line tool that is specifically intended for this purpose. Use the syntax provided in the relevant documentation and verify that the executable file is accessible to the task\u2019s system user. A path that works in one session may not be equally available in the task environment. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">On Linux, a <strong style=\"font-weight:700;color:inherit\">chroot environment<\/strong> Limit the visible file area. If a required program is missing there, first check the intended task type and environment instead of lifting the protection restriction across the board. An unrestricted shell expands access capabilities and is a security concern, especially on shared servers. <\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"betrieb-kontrolle\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"betrieb-kontrolle\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Monitor Execution and Notifications<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">A saved task does not necessarily mean reliable automation. Check regularly to see if it <strong style=\"font-weight:700;color:inherit\">activated<\/strong> and whether its subscription remains active. Plesk describes a case in which a task could not be permanently activated due to a suspended subscription. Therefore, after making changes to the subscription, be sure to check the status of the associated tasks. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Place a suitable <strong style=\"font-weight:700;color:inherit\">Notification<\/strong> Set it up and review the output if a run fails or does not complete as expected. It is crucial that the notifications reach someone who can take action. On the other hand, too many irrelevant notifications can lead to an important error being overlooked. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Before clicking \u201eRun Now,\u201c check what the consequences of running the task immediately would be: For example, a maintenance script might modify data or trigger a processing task. The button actually starts the task and does not display a non-binding preview. You should fix any errors reported during this process before the scheduled execution. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Even a successful immediate run only answers part of the operational question. You should also verify whether the task starts at the expected time and whether the application produces the desired result. Depending on the application, this may require reviewing its log or the processed data.<\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Design outputs and messages so that they do not contain any login credentials, tokens, or unnecessary personal data. If you are running multiple tasks, you should also keep track of their resource requirements. The article on <a href=\"https:\/\/webhosting.de\/en\/control-panels-hosting-resources-security-vpsboost\/\">Resources and Security Considerations for Hosting Control Panels<\/a> classifies these operational issues beyond individual tasks.<\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"fehlersuche\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"fehlersuche\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Systematically Narrow Down Errors<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Start the diagnosis by examining the visible symptom rather than immediately changing the server configuration. The following checks help narrow down the cause of an error to its status, input, or execution environment. An error message alone does not always indicate the cause.<\/p>\n<div class=\"wh-table-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"Common symptoms related to upcoming assignments and first exams\" style=\"width:100%;max-width:100%;overflow-x:auto;margin:28px 0;border:1px solid #dce5e9;border-radius:14px;background:#fff;box-shadow:0 10px 28px -16px rgba(24,47,60,.32);box-sizing:border-box\"><table style=\"width:100%;min-width:580px;border-collapse:separate;border-spacing:0;border:0;margin:0;font-size:15px;line-height:1.6;background:#fff\"><caption style=\"padding:20px;text-align:start;font-size:17px;line-height:1.5;font-weight:700;color:#173246;background:#fff\">Common symptoms related to upcoming assignments and first exams<\/caption><thead><tr><th scope=\"col\" style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#19394d;color:#fff\">Symptom<\/th><th scope=\"col\" style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#19394d;color:#fff\">First Exam<\/th><th scope=\"col\" style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#19394d;color:#fff\">Possible cause<\/th><\/tr><\/thead><tbody><tr><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">The task remains disabled<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Check Subscription Status<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">The subscription has been suspended.<\/td><\/tr><tr><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">Could not open the input file<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">Check the script path and input field<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">A complete PHP command was entered instead of the path.<\/td><\/tr><tr><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Permission denied<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Check the rights of the user performing the action<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">The user is not allowed to access a required file.<\/td><\/tr><tr><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">Program not found<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">Check the path and environment of the user running the program<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">The program is not available there or within the chroot environment.<\/td><\/tr><tr><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">PHP behavior differs from that of the website<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Check the PHP version and settings of the handler being used<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">On Linux, the custom domain PHP settings are not automatically applied when you select \u201eRun a PHP script.\u201c.<\/td><\/tr><\/tbody><\/table><\/div><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">If a scheduled job fails to run, first check its activation status, schedule, and configured time zone. An apparently incorrect execution time may occur if you\u2019re using your local time, but Plesk uses a different time zone for scheduled tasks. Next, check the output or notification for specific details. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">When you encounter a PHP error, you should distinguish between <strong style=\"font-weight:700;color:inherit\">Script path and arguments<\/strong>: The \"Path\" field contains the path to the file, not the complete call to the PHP interpreter. Next, check the selected PHP version and the application's requirements. The fact that the website works does not prove, under Linux, that the task uses the same specific domain settings.  <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">When executing a command, you check the user running it, the file permissions, and the available paths. On Linux, you can also <strong style=\"font-weight:700;color:inherit\">chroot environment<\/strong> Limit the visible file area. If a program is missing, first check whether it is accessible in this environment before considering granting additional permissions or using a different shell.  <\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"sichere-entscheidung\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"sichere-entscheidung\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Carefully weigh the pros and cons of changes<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Select the task type based on how the application is intended to be executed: a suitable PHP script using \u201eRun a PHP script,\u201c a designated HTTP endpoint using \u201eFetch a URL,\u201c or a required command-line program using \u201eRun a command.\u201c This decision determines which inputs and which environment you will need to test next. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">For the user executing the command, the principle of <strong style=\"font-weight:700;color:inherit\">minimum necessary rights<\/strong>: It should be able to access the necessary files and services, but should not be granted additional privileges simply because a task fails initially. Root privileges are not a general requirement for scheduled tasks. Determine, based on the application, what access is actually needed. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">If you are unable to access a file or program under Linux, first check its path, permissions, and the boundaries of the chroot environment. An unrestricted shell expands the accessible scope and increases the risk, especially on shared servers. A server-wide change is therefore not an appropriate default response to every error message. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Even if PHP behaves differently, you should first check the selected version and the script's requirements. For \u201eRun a PHP script\u201c on Linux, the global settings of the PHP handler being used are relevant\u2014not necessarily the individual domain settings. A global change may affect other tasks and should be reviewed accordingly. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Finally, document why a task requires a specific access level or runtime environment. This will allow you to assess later whether these requirements still apply after an application change. Test changes in a controlled manner, and before running the application immediately, ensure that it can perform real actions. <\/p>\n<\/section><section class=\"wh-sources\" style=\"margin:40px 0 0;padding:24px 0 0;border-top:1px solid #dce5e9;color:#596b7b;font-size:14px;line-height:1.65\"><h2 style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Sources and Current State of Knowledge<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Status of the research: <time datetime=\"2026-11-16\">2026-11-16<\/time><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Based on Plesk Obsidian; interface labels and available options may vary depending on language, permissions, and server configuration. Information current as of November 16, 2026.<\/p><div class=\"wh-source-urls\"><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/docs.plesk.com\/en-US\/obsidian\/administrator-guide\/server-administration\/scheduling-tasks.64993\/<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/support.plesk.com\/hc\/en-us\/articles\/12377378463895-How-to-set-up-a-task-to-be-executed-every-X-minutes-on-a-Plesk-server<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/support.plesk.com\/hc\/en-us\/articles\/12377347218711-How-to-add-a-scheduled-task-in-Plesk-UI-using-crontab-syntax?sort_by=votes<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/docs.plesk.com\/en-US\/obsidian\/administrator-guide\/server-administration\/scheduling-tasks\/scheduled-tasks-shell-setting.78064\/<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/support.plesk.com\/hc\/en-us\/articles\/12377478114711-Plesk-scheduled-tasks-fail-due-to-domain-PHP-settings-not-taking-effect<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/support.plesk.com\/hc\/en-us\/articles\/12377377741975-The-PHP-script-cannot-be-run-via-Scheduled-Tasks-in-Plesk-Could-not-open-input-file<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/support.plesk.com\/hc\/en-us\/articles\/12376965851159-Unable-to-activate-scheduled-task-in-Plesk-after-refresh-it-is-still-shown-as-disabled<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/support.plesk.com\/hc\/en-us\/articles\/12377242350999-Running-a-Cron-job-via-Scheduled-Tasks-in-Plesk-fails-Permission-denied<\/span><\/p><\/div><\/section><\/div>","protected":false},"excerpt":{"rendered":"<p>Plesk Scheduled Tasks run PHP scripts, HTTP endpoints, or commands on a schedule. Learn how to choose the right task type, check permissions and time zone, and troubleshoot errors.<\/p>","protected":false},"author":1,"featured_media":22467,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[830],"tags":[],"class_list":["post-22465","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-plesk-administration-anleitungen"],"acf":[],"_links":{"self":[{"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/posts\/22465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/comments?post=22465"}],"version-history":[{"count":2,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/posts\/22465\/revisions"}],"predecessor-version":[{"id":22470,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/posts\/22465\/revisions\/22470"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/media\/22467"}],"wp:attachment":[{"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/media?parent=22465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/categories?post=22465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/tags?post=22465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}