Setting Up Cronjobs in Direct Admin
Login to Direct Admin console and click on target domain.
Under Advanced Features, click on Cronjobs.
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/image_33apir.png)
On this page, you can see a list of settings for new cronjobs.
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/image_1brvnw7.png)
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
Configure the time of the cronjob should run and then click ‘**Add**’, done.
Under Advanced Features, click on Cronjobs.
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/image_33apir.png)
On this page, you can see a list of settings for new cronjobs.
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/image_1brvnw7.png)
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
Configure the time of the cronjob should run and then click ‘**Add**’, done.
Updated on: 09/03/2020
Thank you!