Skip to main content

Cron setup

To periodically run the checks, you need to set up a cron on your system. Just like you already did for the WHMCS crons. On Linux you could add something like this:

*/30 * * * * php -f /path/to/your/whmcs/crons/monitoring.php > /dev/null

To run the cron every 30 minutes for example.

In case you set a low maximum batch per cron run in the configuration, you might want to run the cron more often. It's up to you.

cPanel users​

Please make sure to use the CLI binary for your PHP version.

For PHP 8.3 for example, that would be /usr/local/bin/ea-php83

It might also be useful to specify the binary as an attribute, so the cron could look like so:

*/30 * * * * /usr/local/bin/ea-php83 -f /path/to/your/whmcs/crons/monitoring.php -- --php-bin=/usr/local/bin/ea-php83 > /dev/null