Manage Cron and the Laravel scheduler

In this guide, we will review Cron Jobs and manage a site’s Laravel scheduler. You will learn which screen to use, how to prepare and start the service, and how to check its outcome. The demonstration uses fictional data and performs no server operations.

Before you start, agree the task, timing and expected effect with the application owner. Administrator access is required to edit the shared crontab or change the site service. Preserve existing schedules. For Laravel, prepare a working application and confirm its supported PHP, writable application directories and host prerequisites with the server operator.

Demonstration: Herne 3.55.43, English interface and narration, fictional Northstar Studio data. These are source-rendered screenshots and illustrative states. No crontab is saved, no service is installed or started, and no application task is executed. Written guidance and selectable subtitles are available in six languages.

Watch the walkthrough

English audio · 5 min 51 sec · Subtitles in all six site languages.

1. Choose the correct screen and review Cron

Cron Jobs edits the entire www-data crontab and requires an administrator. A site’s Laravel scheduler runs as that site’s isolated system user. Use the site scheduler for Laravel application schedules. Adding those commands to the shared crontab can create logs and caches that the site cannot write.

Open Cron jobs in the panel navigation. Copy the existing contents to a safe location before editing. Review every existing job with the server operator, including panel maintenance entries. The commented lines shown here are illustrations only; they do not schedule or run a command.

The five fields are minute, hour, day of month, month, and day of week, followed by the command. An asterisk matches every value. Every five minutes uses a step in the minute field. Confirm the server cron time zone and account for daylight saving changes before choosing a time.

Use absolute executable and file paths for reviewed server jobs. Keep an appropriate output log and prevent unwanted overlapping runs. Save crontab installs the editor’s full contents; it is not an append action. Saving an empty editor removes this account’s crontab. Reopen it to verify the retained contents, then check actual execution separately.

Field Allowed values
Minute 0–59
Hour 0–23
Day of month 1–31
Month 1–12
Day of week 0–7
Expression Meaning
*/5 * * * * Every five minutes
0 * * * * Every hour at minute zero
0 2 * * * Daily at 02:00
0 2 * * 0 Sunday at 02:00

Both 0 and 7 mean Sunday. These expressions contain timing fields only: they need an appropriate reviewed command. A leading # makes the whole example line a comment. Do not copy placeholder paths as runnable commands. These schedules use the server cron time zone; the Laravel application can have its own schedule time zone.

Cron Jobs editor for www-data with commented examples and five-field syntax reference.

2. Open and inspect the site scheduler

Before provisioning, deploy a working Laravel application to an active site. Check that the selected PHP version is supported and the canonical project contains artisan. Keep the application’s schedule definitions and time zone in its code and configuration. This screen manages the runner; it does not create individual application tasks.

Open Sites, select the intended site, then choose Runtime and Laravel scheduler. Some older help text calls this Tools. A site owner can view this page, but lifecycle changes require an administrator. If those controls are absent, ask the administrator responsible for this site to perform the reviewed action.

Read Command, Runs as, and Working directory before continuing. The service uses the site’s selected PHP and runs artisan schedule:work from the project directory as the site user. The example user and path belong to this fictional site. Do not copy them into another installation.

Runtime menu showing the Laravel scheduler link for the example site.
Unprovisioned scheduler showing command, isolated site user and project directory.

3. Provision, enable and start

Select Provision, review the confirmation, and confirm only when the application is ready. This installs the systemd service definition. Provisioned Yes means the unit was prepared; initial provisioning does not start scheduled tasks. Check the returned state and any error before moving to the next action.

Enable configures the service to run at boot. Verify Enabled at boot becomes Yes. This setting and the current running state are separate. Do not treat a successful Enable message as proof that the scheduler is running now. Check the status badge and use Start when required.

Select Start and read the action confirmation. Confirming can begin due application tasks, so first check that their effects are intended. Return to the page and inspect the actual service state. Active is the expected running state; a completion message alone does not establish a successful application task.

Provisioned Yes with Stopped state and Enabled at boot No.
Start action confirmation dialog before any service operation.

4. Verify the application result and logs

Wait for a known task’s next scheduled time and verify its intended result in the application. Check the application’s schedule and time zone if nothing is due. A message saying no commands are ready is not itself a failure. The journal shown in this demonstration is fictional, not evidence of a live run.

Recent logs shows a bounded service journal, not a complete task history. Read it alongside the application’s own logs and expected output. No logs available does not prove the absence of an error. When sharing diagnostics, remove credentials and private application data from both the journal and application logs.

For a non-mutating schedule inspection, an authorized operator can use the site’s Artisan screen to run schedule:list. It lists application schedule definitions; it does not prove that a task completed. Do not use schedule:run merely to inspect: it executes due tasks. If a scheduled task dispatches queued jobs, its queue worker and the final job outcome must also be verified separately.

Active service with Enabled at boot Yes and explicitly fictional journal output.

5. Pause, deploy and troubleshoot

Stop requests a stop now. Disable removes automatic start at boot; it does not by itself stop a currently running service. To pause both current and future automatic operation, review and perform both actions, then verify Stopped and Enabled at boot No. Plan around any task already in progress.

After changing application code, PHP, or the primary domain, review the displayed command and directory again. Coordinate a deliberate Restart when the scheduler must load the new application. Do not run a duplicate scheduler from another host or crontab without an application design that safely coordinates those executions.

If provisioning or a lifecycle action fails, read the reported reason and inspect the actual service state before retrying. Missing artisan, an unavailable PHP runtime, or a host helper problem require different repairs. Ask the server operator to resolve host prerequisites. Do not bypass permissions or add broad privileged commands.

Failed scheduler state with missing canonical artisan file message.

6. Retire the runner and complete the checks

Remove is for retiring this site’s scheduler. Review the warning and type the exact site domain to confirm. Removal stops the service and deletes its systemd unit; scheduled tasks will stop running through this runner. It does not undo work already performed or remove the schedule definitions from application code.

Finish by checking the execution user, boot policy, current service state, and a real application result. Keep the general crontab and the site runner distinct. With these checks, you can maintain scheduled tasks and explain clearly whether the runner is prepared, running, or still needs attention.

Remove scheduler dialog requiring the exact site domain for confirmation.
Herne documentation