Magento 2.0 Cron Jobs
Installed Magento 2 using Softaculous. Seeing the following system message:
One or more indexers are invalid. Make sure your Magento cron job is running.
When I check cron job logs, I see the following entry over and over:
bin/magento must be run as a CLI applicationX-Powered-By: PHP/7.0.22
Content-type: text/html; charset=utf-8
Until I get the cron jobs fixed, I cannot install any additional modules. Please advise. All assistance will be greatly appreciated.
One or more indexers are invalid. Make sure your Magento cron job is running.
When I check cron job logs, I see the following entry over and over:
bin/magento must be run as a CLI applicationX-Powered-By: PHP/7.0.22
Content-type: text/html; charset=utf-8
Until I get the cron jobs fixed, I cannot install any additional modules. Please advise. All assistance will be greatly appreciated.
Hi, [email protected]!
Thanks for posting your question. I'm sorry to see that you are running into that error. Our guide on forcing cronjobs to use a specific PHP version should help with getting that issue resolved.
For example, replacing your current cronjob:
php -q /home/userna5/public_html/cronscript.php
(for PHP 7) you will want to use the following command as your cronjob:
/opt/php70/bin/php -q /home/userna5/public_html/cronscript.php
where, /home/userna5/public_html/cronscript.php is replaced with the path to the Magento script. I hope this helps!
Sincerely,
Carlos E