0

enter image description here

I'm getting this error on my dashboard and when i try to reindex through command line via this command from my magento root directory.

/var/www/html/magento

then

php bin/magento indexer:reindex

so it is giving me an error, see it below

Could not open input file: bin/magento

enter image description here

Please help me, because many things are not working properly even my theme. Thank you!

1

try this topic. To summarize, you must set up 3 cron jobs:

*/1 * * * * <path-to-binary> -c <ini-file-path> <your Magento install dir>/bin/magento cron:run [>> <log-file>&] */1 * * * * <path-to-binary> -c <ini-file-path> <your Magento install dir>/update/cron.php [>> <log-file>&] */1 * * * * <path-to-binary> -c <ini-file-path> <your Magento install dir>/bin/magento setup:cron:run [>> <log-file>&]

For example,

*/1 * * * * /etc/php -c /etc/php.ini /var/www/html/magento2/bin/magento cron:run >> /var/www/html/magento2/var/log/cron.log&] */1 * * * * /etc/php -c /etc/php.ini /var/www/html/magento2/bin/update/cron.php [> /var/www/html/magento2/var/log/update.log&] */1 * * * * /etc/php -c /etc/php.ini /var/www/html/magento2/bin/bin/magento setup:cron:run [> /var/www/html/magento2/var/log/setup-cron.log&]

You don't have to do anything to get cron to run; it runs on its own.

1

I'm getting this error on my dashboard and when i try to reindex through command line via this command from my magento root directory.

/var/www/html/magento

then

php bin/magento indexer:reindex

so it is giving me an error, see it below

Could not open input file: bin/magento

You were almost there. The first command should be

cd /var/www/html/magento

to change into the Magento directory

0

First of all you need add magento cron:run to the cron. It's will run indexer process automatically.

Second, please look on command output that you run. You lost cd before 'magento root dir'

  • Your second answer sounds working but can you please tell me how can i add magento cron:run to the corn?? – Siraj Mahmood Mar 12 '16 at 10:55
  • Do you try configure by official docs devdocs.magento.com/guides/v2.0/config-guide/cli/… ? – KAndy Mar 12 '16 at 11:31
  • I already did that all steps but in the "Configure cron groups for custom modules" is it important to setup? Another one thing i already add following lines in my crontab and saved it but do not know how to run it? – Siraj Mahmood Mar 12 '16 at 11:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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