Articles on: Direct Admin

Setting Up Cronjobs in Direct Admin

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




  1. Under Advanced Features, click on Cronjobs.





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






  1. 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:



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




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



Updated on: 09/03/2020

Was this article helpful?

Share your feedback

Cancel

Thank you!