hello,
I am using magento 2.1.5 and trying to reindex via SSH putty, i was tried by the command 'bin/magento indexer:reindex' and also tried with 'php bin/magento indexer:reindex' but it is not working. The result is here.
*****@*****.com [~]# bin/magento indexer:reindex
-bash: bin/magento: No such file or directory
*****@*****.com [~]# php bin/magento indexer:reindex
Could not open input file: bin/magento
*****@*****.com [~]#
What is the path of your installation? You are in ~ (you home), try php /var/www/html/bin/magento indexer:reindex or php [your magento path]/bin/magento indexer:reindex
Hi,
Go to the root directory of Magento and execute your command.
sudo php bin/magento indexer:reindex -v
this will display the error, trace the error and fix the issue or you can paste error here. If still found the same issue use the following
1. remove var/di, var/generation, var/cache
2. Recompile the Magento
3. Clear the cache and then try again.