Search Our Database

How to Set Up Cronjobs in DirectAdmin

Last updated on |
by

1. Log in to DirectAdmin and navigate to Cronjobs.

2.) You will be brought to a settings page that allows you to configure your cronjobs.

3.) Upload your cronjob script to a directory of your hosting space through FTP. In the cronjobs setting page, configure the cronjob command to run in the Command section highlighted below:

Examples of cron commands and the directory of the cron scripts:

/usr/local/bin/php /home/'username'/domains/'domain.com'/public_html/script.php
/usr/bin/wget --output-document=/dev/null http://domain.com/pathtoscript/script.php > /dev/null 2>&1

4.) Configure the timing the cron job should run and then click Add to finalise the settings.