CRON jobs and running scripts
CRON automatically runs a command at a selected time. Typical uses include an application's scheduler, imports, exports, cleanup and sending notifications.
| DirectAdmin | Where to find CRON |
|---|---|
Newer version — for example srv1.webdom.sk and srv5 | Advanced Features → CRON Jobs |
Older version — for example web1, web2, srv3 and web4 | Advanced Features → Scheduled Tasks |
CRON runs in the background without an open browser. Use absolute paths and test the command manually first. Do not schedule it more frequently than the application requires.
Guides
- Create a CRON job
- Schedule and frequency
- Commands for PHP, curl and wget
- Email output and logging
- CRON troubleshooting
Before creating a job
- Find the exact command in the application's documentation.
- Verify the user, domain, file path and required PHP version.
- Choose a sensible interval; shared-hosting CRON is not designed for jobs every second.
- Decide whether errors should be emailed or written to a log.