Skip to content

Cron Jobs

Cron jobs allow you to automatically execute commands or scripts at scheduled times. Typical use cases include regular database cleanups, email sending, cache refreshes or WordPress maintenance tasks.


Overview

The cron job table shows all your configured cron jobs:

Column Description
Label Name of the cron job
Site Site whose Linux user runs the command
Schedule Cron expression (minute, hour, day, month, weekday)
Command The command or script path to be executed
Active Yes or No

Create Cron Job

  1. Click Create Cron Job
  2. Fill in the form:
Field Required Description
Site Yes Site whose Linux user runs the command
Label Yes Name of the cron job, e.g. "WordPress Cron"
Cron Expression Yes Five fields: minute, hour, day, month, weekday (see below). Schedule presets apply a template, e.g. "Daily 02:00"
Command Yes The command to be executed
Notification No Do not notify (default), Errors only or Every run
Notification e-mail No Recipient of the notification; empty = the customer's e-mail address
Active No Switch; a disabled cron job is not executed
  1. Click Create

Quota

The maximum number of cron jobs depends on your hosting package. You can see the remaining quota in the dashboard.


Schedule Syntax

The schedule is specified as a cron expression. Here are the five fields:

┌───────────── Minute (0–59)
│ ┌───────────── Hour (0–23)
│ │ ┌───────────── Day of Month (1–31)
│ │ │ ┌───────────── Month (1–12)
│ │ │ │ ┌───────────── Day of Week (0–7, Sun=0 or 7)
│ │ │ │ │
* * * * *

Special Characters

Character Meaning Example
* Every value * * * * * = every minute
, List 0,30 * * * * = at minute 0 and 30
- Range 0 9-17 * * * = hourly from 9 to 17
/ Interval */15 * * * * = every 15 minutes

Common Examples

Every 5 Minutes

*/5 * * * *

Daily at 3:00 AM

0 3 * * *

Hourly on the Hour

0 * * * *

Every Monday at 6:00 AM

0 6 * * 1

First Day of Every Month at Midnight

0 0 1 * *

Every 30 Minutes, Weekdays Only

*/30 * * * 1-5

Practical Examples

Run WordPress Cron

WordPress requires regular cron calls for scheduled posts, plugin updates and maintenance tasks:

*/15 * * * * /usr/bin/php /var/www/customers/YourUser/public_html/wp-cron.php

WordPress wp-cron.php

For better performance, disable the built-in WP-Cron in wp-config.php with define('DISABLE_WP_CRON', true); and use the server cron job instead.

Run PHP Script

0 2 * * * /usr/bin/php /var/www/customers/YourUser/public_html/scripts/cleanup.php

Database Cleanup via URL

0 4 * * * /usr/bin/curl -s https://your-domain.com/cron/cleanup

Clear Cache

0 */6 * * * /usr/bin/php /var/www/customers/YourUser/public_html/artisan cache:clear

Output and Notification

The panel redirects your command's output itself. The Notification option decides what is sent by e-mail: Do not notify (default) discards the output, Errors only sends the error output (stderr), Every run sends the standard output (stdout) — in each case only if it is non-empty. Do not append your own redirection such as > /dev/null 2>&1, otherwise the notifications are lost.


Edit Cron Job

  1. Click the edit icon next to the cron job
  2. Adjust the command or schedule
  3. Click Save

Enable / Disable Cron Job

You can temporarily disable a cron job without deleting it:

  1. Click the edit icon next to the cron job
  2. Switch the Active toggle off or on
  3. Click Save

Delete Cron Job

  1. Click the delete icon next to the cron job
  2. Confirm the deletion in the dialog

Notes and Restrictions

No Direct Crontab Access

For security reasons, cron jobs are managed exclusively through the panel. Direct access to the system crontab via SSH is not possible.

Execution Frequency

Be careful not to run your cron jobs too frequently (e.g. every minute), as this consumes server resources. Choose the lowest sensible frequency.