I am trying to get cron jobs working properly using Ultima Cron. When someone accesses the site, the cron jobs are executed properly.
My understanding is that when i use cron tab (as opposed to simple) scheduler the job should run at the specified interval regardless of whether someone accesses the site or not. Is that correct?
The schedule of the cron job is */1+@ * * * * and when i hover over the scheduled time it shows the correct time. But it is only executed once someone accesses the site.
In the advanced settings of the (virtual server) I tried
* * * * * wget -O - -q -t 1 --no-check-certificate https://domain name.com/cron.php?cron_key=cron-key
* * * * * wget -O - -q -t 1 https://domain name.com/cron.php?cron_key=cron-key
The default value there was
* * * * * cd /home/domain/userid/public_html && php /home/domain/userid/public_html/cron.php?cron_key=key
My understanding is that the wget (which is installed) calls the cron.php file at the specified interval and this substitutes the user visitor?
In the .htaccess there was a allow from IP address. Seems like this prevented the cron from working properly. The line below works when added as cron tab for a ssl site.
* * * * * wget --no-check-certificate -O - -q -t 1 https://www.domain/cron.php?cron_key=key