2

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 1

0

If you modify .htaccess to allow it, you can run pub/cron.php.

https://github.com/magento/magento2/blob/develop/pub/.htaccess#L207

2
  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.