Hostxpeed
Login Get Started →
Control Panel

How to Set Up Cron Jobs in HestiaCP

5 min read
24 views
Jun 11, 2026

Prerequisites

Before setting up cron jobs, make sure you have:

  • Access to HestiaCP control panel
  • Basic understanding of the command you want to schedule

Method 1: Create Cron Job via HestiaCP Web Interface

Step 1: Log in to HestiaCP

https://YOUR_SERVER_IP:8083

Step 2: Navigate to USER Section

Click on USER in the top menu bar, then select your username.

Step 3: Go to Cron Tab

Click on the Cron tab.

Step 4: Click "Add Cron Job"

Click the green + Add Cron Job button.

Step 5: Configure Schedule

  • Minute: 0-59 (or * for every minute)
  • Hour: 0-23
  • Day: 1-31
  • Month: 1-12
  • Weekday: 0-7 (0 and 7 = Sunday)
  • Command: The command to execute

Step 6: Save

Click Add to create the cron job.

Common Cron Job Examples

Daily backup at 2 AM:

0 2 * * * /usr/local/bin/backup-script.sh

Daily WordPress cron (many plugins use this):

0 * * * * wget -q -O - https://example.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1

Weekly database cleanup (Sunday 3 AM):

0 3 * * 0 /usr/bin/mysqlcheck -o --all-databases

Run every 15 minutes:

*/15 * * * * /usr/local/bin/monitor.sh

Run on 1st of every month at midnight:

0 0 1 * * /usr/local/bin/monthly-report.sh

Method 2: Create Cron Job via SSH

ssh hxroot@YOUR_SERVER_IP -p 22
crontab -e

Add your cron line and save.

For user-specific crontab:

crontab -u admin -e

Add Cron Job for Website Maintenance

Example - clear cache every hour:

0 * * * * rm -rf /home/admin/web/example.com/public_html/cache/*

Example - send disk usage report:

0 9 * * * df -h | mail -s "Disk Usage Report" admin@example.com

✅ Cron job has been scheduled successfully!

Was this article helpful?