Cron job Access Denied - Vtiger
Greetings
I set a cron job following these guidelines: https://www.inmotionhosting.com/support/community-support/how-to/configure-cron-jobs-for-vtiger-60
The problem is that i receive an email with content "Access Denied!". The file has permissions 0755.
The command is:
sh /home/xxxxxx/public_html/crm/cron/vtigercron.sh
Can you tell me what's wrong?
I set a cron job following these guidelines: https://www.inmotionhosting.com/support/community-support/how-to/configure-cron-jobs-for-vtiger-60
The problem is that i receive an email with content "Access Denied!". The file has permissions 0755.
The command is:
sh /home/xxxxxx/public_html/crm/cron/vtigercron.sh
Can you tell me what's wrong?
open the file "vtigercron.php" in line 42 the code is:
if (php_sapi === "cli" || (isset ($ _ session ["authenticated_user_id"]) ....
changed to what appeared in the browser. in my case was "cgi-fcgi":
if (php_sapi === "cgi-fcgi" || (isset ($ _ session ["authenticated_user_id"])
And in Cpanel - Cron Job use this:
php -q /home/userna5/public_html/"your_root_or_folder_crm"/vtigercron.php
so it will be something similar to: /home/userna5/public_html/path/to/script, with "userna5" being your username.
If you need more about: https://discussions.vtiger.com/index.php?p=/discussion/170338/scheduler-cron-job-not-working-access-denied/p1
I hope this can help you...