- In DirectAdmin, open Advanced Features → Cronjobs.
- Choose the timing: minute, hour, day, month, weekday. For example, every 5 minutes: minute
*/5, the rest*. - Enter the command and create it.
Example commands:
- PHP script:
/usr/local/bin/php /home/account/domains/yourdomain/public_html/cron.php - Calling a URL:
curl -s https://yourdomain/cron >/dev/null 2>&1
Heavy scripts that run too often (every minute) can exhaust your account’s resources — choose the minimum frequency you need.