Skip to content

Cron Job Management

Cron jobs enable scheduled execution of commands on the server. Typical use cases include regular database cleanup, email sending, or cache updates.


Overview

The cron job table shows all configured cron jobs:

Column Description
Name Cron job name
Website Associated website
Schedule Cron expression (e.g. */5 * * * *)
Command Command to execute
Status Active or Disabled
Created Creation date

Create Cron Job

  1. Click Create Cron Job
  2. Fill out the form:
Field Required Description
Subscription Yes (Admin) Associated hosting subscription
Website Yes Associated website
Name Yes Descriptive name
Schedule Yes Cron expression
Command Yes Command to execute
  1. Click Create

Schedule Syntax (Cron Expression)

A cron expression consists of five fields:

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

Common Examples

Expression Description
* * * * * Every minute
*/5 * * * * Every 5 minutes
*/15 * * * * Every 15 minutes
0 * * * * Every full hour
0 */2 * * * Every 2 hours
0 0 * * * Daily at midnight
0 2 * * * Daily at 02:00
0 0 * * 1 Every Monday at midnight
0 0 1 * * 1st of every month at midnight
30 4 * * 1-5 Monday–Friday at 04:30

Special Characters

Character Meaning
* Every value
*/n Every n units
n-m Range from n to m
n,m Specific values n and m

Edit Cron Job

  1. Click the Edit icon
  2. Change name, schedule, or command
  3. Click Save

Enable / Disable Cron Job

  • Use the Toggle in the action column
  • Disabled cron jobs are not executed but remain configured

Delete Cron Job

  1. Click the Delete icon
  2. Confirm the deletion

Examples of Common Cron Jobs

WordPress Cron

*/15 * * * * /usr/bin/php /home/user/web/domain.com/public_html/wp-cron.php

WordPress wp-cron

For WordPress websites, it is recommended to run the internal wp-cron.php via a system cron and disable the WP-internal cron in wp-config.php: define('DISABLE_WP_CRON', true);

Database Cleanup

0 3 * * * /usr/bin/php /home/user/web/domain.com/cleanup.php

Call URL (HTTP Request)

*/30 * * * * /usr/bin/curl -s https://domain.com/cron-endpoint > /dev/null

Security

  • Cron jobs are executed under the Linux user of the subscription
  • Commands have the same permissions as the website user
  • open_basedir and disable_functions also apply to cron jobs
  • The maximum number of cron jobs is limited by the hosting package

Troubleshooting

Problem Solution
Cron is not executing Check whether the cron job is enabled
Command fails Test the command manually as the website user
Wrong PHP version Use the full path to the desired PHP version (e.g. /usr/bin/php8.4)
Missing output Redirect output to a file: >> /home/user/cron.log 2>&1