1. Log in to the Panel
Go to http://yourdomain.com:2222 in your browser.
Log in to the DirectAdmin control panel with your username and password.
2. Go to the Scheduled Tasks Section
Click on the Advanced Features tab in the left menu.
Cron Jobs from the opened menu.
3. Create a New Cron Job
Click the Add Cron Job button.
In the form that appears, enter the following information:
- Command: The command or to be executed.
- Timing: Minute, hour, day, month, and week parameters.
Example:0 2 * * *→ Runs every day at 02:00. - User: Specify under which user account the task will run.
4. Save and Test
After entering the information, click the Save button.
The new cron job will appear in your task list.
To test if it works correctly, you can run the command manually or wait for the scheduled time.
Important Notes
- Incorrect scheduling may cause unnecessary server load.
- Always test the accuracy of commands; incorrect commands may your data.
- Security: Ensure that the s you run with cron jobs are safe.