How to Set Up Cron Jobs in DirectAdmin
Cron jobs automate scheduled tasks like running scripts or sending emails. Here’s how to set one up:
- Log in to DirectAdmin at
https://yourdomain.com:2222
. - Click on Cron Jobs under your domain.
- Click Add Cron Job.
- Fill in the schedule fields (minute, hour, day, month, weekday) according to when you want the job to run.
- Enter the full command to execute (e.g., a PHP script path).
- Click Add to save the cron job.
Make sure your command paths and scripts are correct to avoid errors.