> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.serverfreak.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Setting Up Cronjobs in Direct Admin

1. Login to Direct Admin console and click on target domain.



2. Under **Advanced Features**, click on **Cronjobs**.


![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/image_33apir.png)


3.   On this page, you can see a list of settings for new cronjobs.


![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/image_1brvnw7.png)



4. Upload your cronjob scripting to a directory of your hosting space through ftp. Then on the cronjobs settings, insert the command and the cronjob scripting to the command box as highlighted as below:

![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/image_qihmgc.png)

**NOTE: Example of Cron Command and Directory/Path**

/usr/bin/wget --output-document=/dev/null http://domain.com/pathtoscript/script.php > /dev/null 2>&1


**Directory or Path:**
/usr/local/bin/php /home/'username'/domains/'domain.com'/public_html/script.php



5. Configure the time of the cronjob should run and then click ‘**Add**’, done.

