Cron Jobs

To manage your cron jobs, navigate to the Cron tab.

Toggling cron job notifications

  1. To turn them off, click the Turn off notifications button.
  2. To turn them back on, click the Turn on notifications button.

Adding a cron job

  1. Click the Add job button.
  2. Enter the command you want to execute.
  3. Enter the schedule on which you want to execute the command. You can use the generator to help you, or a tool such as Crontab.guru.
  4. Important: If you use a normal user, you cannot use sudo in cron jobs, as Hestia does not add normal users to the sudoers configuration file.

Editing a cron job

  1. Hover over the job you want to edit.
  2. Click the edit icon on the right of the job’s command.

Suspending a cron job

  1. Hover over the job you want to suspend.
  2. Click the suspend icon on the right of the job’s command.
  3. To unsuspend it, click the unsuspend icon on the right of the job’s command.

Deleting a cron job

  1. Hover over the job you want to delete.
  2. Click the delete icon on the right of the job’s command.

Example commands

If you want to run a PHP script for a user, you can enter the command like this, using the full binary path of the application to run:

/usr/bin/php8.2 -f /home/user/web/domain.example.com/public_html/cron.php
Hjälpte svaret dig? 0 användare blev hjälpta av detta svar (0 Antal röster)