Innovate | Connect | Transform
ContactService statusUSD $

GICT knowledge base

Create and Verify a cPanel Cron Job

Published

cPanel

cPanel Cron Jobs schedules commands under your hosting account. It does not give a website account root privileges. Use an application-documented command and interval, and confirm that the feature is available for your service.

Prepare the task

Identify the intended script, interpreter version, working directory, runtime user and expected duration. Cron has a smaller environment than an interactive shell: use verified command/script paths and explicit configuration rather than assuming your terminal’s PATH, current directory or aliases will exist.

Create and inspect the entry

  1. Open Advanced > Cron Jobs in the trusted cPanel account.
  2. Set a monitored Cron Email address if you want mailed command output. Delivery depends on actual output and mail configuration; it is not a guaranteed notice after every successful run.
  3. Use Common Settings or the five schedule fields. For daily midnight, Minute is 0, Hour is 0 and Day/Month/Weekday are each *. Confirm the server’s timezone before relying on the displayed time.
  4. Enter only the command in the Command field, not a second copy of the five schedule fields. Use the application’s supported CLI interpreter when required.
  5. Add the job and inspect its complete schedule and command under Current Cron Jobs.

Verify before suppressing output

First test the task safely in the same account context, then observe a real scheduled run and its application result. A saved-entry success message proves configuration was accepted, not that the script completed. Avoid overlapping runs with an appropriate application lock or a sufficiently deliberate scheduling design.

The shell suffix >/dev/null 2>&1 discards both standard output and errors; it is not an error-monitoring solution. Keep useful diagnostics in a protected, bounded log or monitored output channel during setup. Never put passwords in a cron command or write sensitive logs into a public web directory.

Edit or remove only the intended job

Record the current entry before using its Edit or Delete action. Removing a schedule does not necessarily terminate a process already running or undo its changes. Check application dependencies and whether a second scheduler also invokes the same task.

Reference: cPanel Cron Jobs.

Reviewed October 15, 2026. Documentation review; no customer cron entry, script or email delivery was run or changed.

Related guides

Account services are unavailable until the production backend is configured.