Cron setting without crontab

Hello,

I request your help as I’m blocked during the V5 installation.
We finally managed to spend some time to migrate from v4 to v5.

We currently have a share hosted solution that don’t let us access to crontab.
I managed to perfom the installation of the V5, create an account and connect to the portal. But now I’m stuck with the cron job.

We have access to a GUI to create jobs, but it only let us “run URL”. I tried to create a file named cron.php in the public folder with:

<?php
exec('register_argc_argv=On artisan schedule:run');
?>

but that’s not working.

Fatal error: Uncaught Error: Call to undefined function exec() in /home/clients/0366d0eed57f9741f13f665ef85dfd41/sites/inv.***/public/cron.php:2 Stack trace: #0 {main} thrown in /home/clients/0366d0eed57f9741f13f665ef85dfd41/sites/inv.***/public/cron.php on line 2

Any idea how I can manage to perform that job with our limitations?

Many thanks in advance for your support! I’m not a developper and not in IT neither

Hi,

Maybe this will help:

Ok, why I’m so blind… Yes, it seems to work that way. Many thanks for your reply!

1 Like