Server & Hosting

Cron Job Generator

Pick how often a task should run and get the cron expression, or paste an expression to read it in plain English and see its next run times — for cPanel, hPanel and Linux crontab.

Schedule

In plain English

—

Next runs (your time zone)

    How a cron expression works

    Cron is the scheduler on Linux servers. A schedule has five fields separated by spaces — minute, hour, day of the month, month and day of the week — and the server runs the command whenever all of them match. A * means “every”, so 0 3 * * * means “at minute 0 of hour 3, every day”.

    The building blocks

    Adding a cron job to your hosting

    1. cPanel: Advanced → Cron Jobs. Choose the common setting or enter the five fields, and paste your command.
    2. Hostinger hPanel: Advanced → Cron Jobs. Choose Custom and enter the fields, or pick PHP and give the script path.
    3. A VPS: run crontab -e and add the whole line shown here.

    Good to know

    Frequently asked questions

    What is the cron expression for every 5 minutes?

    */5 * * * *

    How do I run a cron job every day at midnight?

    0 0 * * * — or the shortcut @daily.

    How do I run a PHP script with cron?

    Use the full path to PHP and the script, such as /usr/bin/php /home/username/public_html/cron.php. Your host’s cron page usually shows the right PHP path.