Cron Jobs lets you schedule tasks that run on their own, such as clearing a cache folder every night or running a PHP script every few minutes. Each job belongs to one hosted domain and has: The page has two parts: a short help panel with examples and the list of allowed commands, then the Create form, followed by the table of jobs already saved. GoAdmio is a free, open-source hosting control panel, a drop-in alternative to cPanel and WHM.
Quick start
- Go to Advanced » Cron Jobs.
- Choose the Domain the job belongs to.
- Fill in the five Cron Schedule boxes. Each box defaults to
*, which means "every". - Enter the Command to run. Only allowed commands can be used.
- Optionally add a Description.
- Click Create. The job appears in the table below the form.
Fields
Domain
| Field | Required | Default | Notes |
|---|---|---|---|
| Domain | Yes | First domain in the list | Pick from the hosted domains on the server. The job is saved under this domain. |
Cron Schedule
The schedule is five boxes side by side, in this order. Every box is required and defaults to *.
| Box | Field | Accepted values | Example |
|---|---|---|---|
| 1 | Minute | 0–59, or * |
30 = at minute 30 |
| 2 | Hour | 0–23, or * |
9 = 9 AM |
| 3 | Day of month | 1–31, or * |
1 = the first of the month |
| 4 | Month | 1–12, or * |
6 = June |
| 5 | Day of week | 0–7, or * (0 and 7 are both Sunday) |
1 = Monday |
Hovering over a box shows its allowed range.
Command and description
| Field | Required | Default | Notes |
|---|---|---|---|
| Command | Yes | None | The command to run. Max 255 characters. Must start with an allowed command. |
| Description | No | None | A short label for the job. Max 50 characters. |
Common schedules
The page shows these examples:
| Schedule | Meaning |
|---|---|
0 2 * * * |
Daily at 2:00 AM |
*/15 * * * * |
Every 15 minutes |
0 9 * * 1 |
Every Monday at 9 AM |
Example jobs
| Schedule | Command | What it does |
|---|---|---|
0 2 * * * |
find /home/example.com/www/cache -type f -delete |
Deletes all files in the cache folder every day at 2:00 AM. |
0 3 * * * |
php /home/example.com/www/backup.php |
Runs a backup script every day at 3:00 AM. |
Running into problems? See troubleshooting Cron Jobs.
See the docs page Cron Jobs for the details.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
