How to Automate Server Operations

Cron Jobs are essential for automating background tasks like database backups, log rotation, or periodic API syncs. Follow this manual to establish your first automated task.

Step 1: Open the Task Scheduler

Navigate to Automation & Cron in the Admin Panel sidebar and click the "New Task" button.

Step 2: Define Task Parameters

  1. Task Name: Enter a descriptive name (e.g., Daily DB Backup).
  2. Execution Type:
    • Shell: Executes a command directly on the server.
    • URL: Triggers a remote GET request to a specific URL.
  3. PHP Version: If running a PHP script, select the specific version required.
  4. Frequency: Choose a preset schedule (e.g., Every Minute, Daily) or provide a custom cron expression.
[IMAGE_PLACEHOLDER: Add Cron Step - Screenshot of the task creation modal with frequency presets.]

Step 3: Provide the Command Path

For Shell tasks, enter the full path to the executable and the script.
Example: /usr/bin/php /www/wwwroot/domain.com/cron.php.

MANUAL TIP: Always use absolute paths for your scripts to ensure the cron engine can locate them accurately regardless of the execution context.