Difference between revisions of "Cron Configuration"

From WHMCS Documentation

(Windows Server)
(Windows Server)
Line 60: Line 60:
  
 
An example command to run is:
 
An example command to run is:
 
+
{| class="wikitable" border="1" style="text-align:center"
C:\php\php.exe -q "C:\inetpub\wwwroot\whmcs7\admin\cron.php"
+
!Command
 +
|C:\php\php.exe -q "C:\inetpub\wwwroot\whmcs7\admin\cron.php"
  
 
==DotNetPanel==
 
==DotNetPanel==

Revision as of 10:49, 23 September 2008

Setting Up Cron Jobs

We recommend you run the cron once per day to avoid your customers receiving duplicate emails for overdue notices etc. The following information will aid you in setting up your Admin cron (invoice generation etc) on different Control Panels and environments.

The examples below will setup the cron to run at 9am every day.

cPanel

Click on the Cron Job link in cPanel and then click the Advanced (Unix Style) button.

cPanel Cron
Option Minute Hour Day Month Weekday Command
a) 0 9 * * * php -q /path/to/home/public_html/whmcspath/adminpath/cron.php
b) 0 9 * * * wget -O http://www.yourdomain.com/whmcspath/adminpath/cron.php >/dev/null
c) 0 9 * * * get http://www.yourdomain.com/whmcspath/adminpath/cron.php

Direct Admin

Windows Server

Depending on your server setup, you can run the cron directly from the php executable.

An example command to run is:

Command C:\php\php.exe -q "C:\inetpub\wwwroot\whmcs7\admin\cron.php"

DotNetPanel

Plesk

LXAdmin

Helm

Ensim

InterWorx

HyperVM

TCAdmin