Run CRON from URL
To run CRON in Vtiger or check either cron run successfully or not go to address bar and type “www.example.com/vtigercron.php”.
It shows Access denied, so to solve this issue follow these simple steps:-
Overcome the Error “Access Denied”.
Go to vtigercron.php and find
if(vtigercron_detect_run_in_cli() || (isset($_SESSION["authenticated_user_id"]) && isset($_SESSION["app_unique_key"]) && $_SESSION["app_unique_key"] == $application_unique_key)){
Replace with
if(vtigercron_detect_run_in_cli() || ($_REQUEST["app_unique_key"] == $application_unique_key) || (isset($_SESSION["authenticated_user_id"]) && isset($_SESSION["app_unique_key"]) && $_SESSION["app_unique_key"] == $application_unique_key)){

Need App Unique Key
You may find your app_unique_key in config.inc.php.
Go to config.inc.php file and search “$application_unique_key”.

Now Run Cron Job
To run cron job, go to your browser’s address bar and browse http://www.example.com/vtigercron.php?app_unique_key=xxxxxxxxxxxxxxxxxxxxx

That's it.
Now you can run CRON successfully.
Thank You.
- Log in to post comments