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
Command The command or script path to be executed
Schedule Cron expression (minute, hour, day, month, weekday)
Status Active or Disabled
Last Execution Time of the last execution

Create Cron Job

  1. Click Create Cron Job
  2. Fill in the form:
Field Required Description
Command Yes The command to be executed
Minute Yes Minute (0–59 or * for every minute)
Hour Yes Hour (0–23 or * for every hour)
Day Yes Day of the month (1–31 or * for every day)
Month Yes Month (1–12 or * for every month)
Weekday Yes Day of the week (0–7, where 0 and 7 = Sunday, or * for every day)
  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 /home/YourUser/web/your-domain.com/public/wp-cron.php > /dev/null 2>&1

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 /home/YourUser/web/your-domain.com/scripts/cleanup.php > /dev/null 2>&1

Database Cleanup via URL

0 4 * * * /usr/bin/curl -s https://your-domain.com/cron/cleanup > /dev/null 2>&1

Clear Cache

0 */6 * * * /usr/bin/php /home/YourUser/web/your-domain.com/artisan cache:clear > /dev/null 2>&1

Suppress Output

Append > /dev/null 2>&1 to your command to suppress output. Otherwise, output will be sent as an email to the system user.


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 status toggle next to the cron job
  2. The cron job is immediately enabled or disabled

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.