Developer Tools

How to create and manage cron jobs

~2 min read

The cron job manager lets you schedule recurring commands on your server using a visual builder — no need to memorise cron expression syntax.

Steps

  1. 1

    Open Cron Jobs

    Open your server and click "Cron Jobs" in the sidebar.

  2. 2

    Click Add Cron Job

    Click the "Add Cron Job" button.

  3. 3

    Set the schedule

    Use the visual schedule builder to select when the job runs (every minute, hourly, daily, weekly, or a custom interval). You can also switch to "Raw" mode and enter a cron expression directly.

  4. 4

    Enter the command

    Enter the full command to execute. Always use absolute paths — the cron environment does not have the same PATH as your shell session.

    * * * * * /usr/bin/php /var/www/mysite.com/artisan schedule:run >> /dev/null 2>&1
  5. 5

    Save the cron job

    Click "Save". The job appears in the list with its schedule, last run time, and status.

  6. 6

    Enable or disable

    Use the toggle switch to pause a cron job without deleting it. Click "Run Now" to execute it immediately for testing.

Watch out

  • Cron jobs run as www-data, not root. If your command needs root access, it will fail silently. Use sudo with the NOPASSWD flag or restructure the command.

Tips

  • For Laravel: add a single cron job running every minute — `php /var/www/yoursite.com/artisan schedule:run`. Laravel's scheduler handles all the task timing internally.
  • Cron expression breakdown: minute (0–59), hour (0–23), day of month (1–31), month (1–12), day of week (0–7). An asterisk (*) means "every".
  • Redirect output to /dev/null (`>> /dev/null 2>&1`) to prevent cron from sending emails for every run.

Related guides