Add cron jobs on Direct Admin

Rowan

Last Update 4 years ago

In this tutorial we shall cover how to create a cron job on DirectAdmin

1. Login to Direct Admin (How to login to DirectAdmin)

2.Go to Advanced Features >> Cron Jobs 

3. Then select CREATE CRON JOB

4. Set the time you wish to run the cron on, below are some examples:

Every 1 minute: * * * * *

5 minutes past every hour: 5 * * * *

Every 5 minutes: */5 * * * *

Every one hour: 0 * * * *

At midnight: 0 0 * * *

5. In the command box enter the command you want to execute, in this case I shall execute a php scrip php -v /home/account-username/path/to/script.php

You cron should now be setup and running on your desired time