Hi, I have attempt to get this right over weeks now. I have even done separate installations but could not get to work on either.
The current IP installation is on a sub-domain, but I have also tried installing into a sub-folder.
Accessing the path below in the browser give a blank page, which is sign that it works, but via then cron job it just does now work and throws the error below all the time.
Yes, the path is correct and when I load it with the correct key it gives me a blank page, however when I pass the path into the CRON job, the CRON job executes but it is unable to resolve the path and throws the ERROR: “/usr/local/cpanel/bin/jailshell: https://wakaitu.invoicenamibia.com/index.php/invoices/cron/recur/MYCRONKEY: No such file or directory”
I can not debug this from here, but pls provide some more infos:
Which user owns the installation folder (and its subfolders & files)?
Under which user is the cron getting executed?
How exactly is your CronJob?
Pls tell me how exactly your CronJob looks and I will assist you.
And gaving a white screen when the cron is executed is 100% normal, as its a backgroundtask where you do not get any output unless there is somthing not working properly.
Like at a good CLI which just calls back with an error if something is wrong.
You are now just executing the link but you dont tell the Cron what to do with it. You dont tell how or with what it should get called. A Link itself is not a command. But in the command-field of your cron is just a link
if wget is installed wget -O - https://wakaitu.invoicenamibia.com/index.php/invoices/cron/recur/your-cron-key >/dev/null 2>&1
if curl is installed curl -o "https://wakaitu.invoicenamibia.com/index.php/invoices/cron/recur/your-cron-key" >/dev/null 2>&1
Also you should ask yourself if you want to run this command every 5 mins, which is a bit aggressive for a task like this. The Wiki recommends once a day, which is ok, I would go for once a day at a spezific time like 9am (9:00), thats totally ok. As the cron does just affect recurring Invoices and when they get send out. You definitely dont have to check that every 5 mins as they are timed on days mostly.