This is an old revision of the document!
Execute Cronjob from Web
Tested with 6.1.
Sometimes you couldn't use system cronjobs to run the vtigerCRM Scheduler. But lot's of features need this to work properly.
So you could modify the Cron File to execute the Cronjob over HTTP.
To not open this file for every one you need to add the application unique key as parameter and could limit the access to a single IP or IP range.
File: vtigercron.php
Search
$version = explode('.', phpversion());
Insert After
if(!empty($_REQUEST["unique_key"])) { $allowOnlyIP = ""; //To get the IP which you need to limit the access, uncomment the next line: //var_dump($_SERVER["REMOTE_ADDR"]); $_SESSION["app_unique_key"] = preg_replace("[^a-zA-Z0-9-.,_;:]", "", $_REQUEST["unique_key"]); $_SESSION["authenticated_user_id"] = 1; if(!empty($allowOnlyIP) && strpos($_SERVER["REMOTE_ADDR"], $allowOnlyIP) !== 0) { unset($_SESSION["app_unique_key"]); unset($_SESSION["authenticated_user_id"]); } }