At my current host, i can only set cron jobs with URL and not with command. Is there a way to run the Magento 2 cron jobs inside a php or sh file that i can run it over a URL?
1 Answer
If you modify .htaccess
to allow it, you can run pub/cron.php
.
https://github.com/magento/magento2/blob/develop/pub/.htaccess#L207
-
Ok i have test it but it won't work. I became some uncaught errors. Commented Sep 29, 2016 at 16:56
-
Add the errors here and someone might be able to help you. Commented Oct 11, 2016 at 14:49