I tried the instructions under Magento 2 Reindexing - One or more indexers are invalid. Make sure your Magento cron job is running
but am still unable to reindex. I ssh'd into my webserver and tried running the command that was suggested from the root, php bin/magento indexer:reindex but it didn't work, so I tried going to the directory
"blahblah.com"/shop/bin$ magento indexer:reindex
-bash: magento: command not found
(I have a /shop directory where my files are installed)
and I tried magento indexer:status (and some others but am not able to run the commands, keep getting command not found)
I also opened up the file manager, found the magento file, opened it up and searched for indexer but am not finding it either.
Can someone help me to understand how I can reindex the status under the Index Management of my magento site? Thanks.
php bin/magento setup:di:compilecommand and check what error and which file error it gives ? also check your log file – Manthan Dave Feb 11 '17 at 08:58@Andrew, it might be a problem with the script I originally ran which was on a hosted server- maybe the files I need aren't uploaded?
– Steve Bellinger Feb 11 '17 at 14:25@Manthan Dave, I tried running the command you suggested, but I walked the path trying to execute the command and here's the results:
sbellinger@web18:~$ php bin/magento setup:di:compile Could not open input file: bin/magento
sbellinger@web18:~$ cd www sbellinger@web18:~/www$ php bin/magento setup:di:compile Could not open input file: bin/magento
sbellinger@web18:~/www$ cd anything.com sbellinger@web18:~/www/anything.com$ php bin/magento setup:di:compile Could not open input file: bin/magento
– Steve Bellinger Feb 11 '17 at 14:27sbellinger@web18:~/www/anything.com/shop/bin$ dir magento
– Steve Bellinger Feb 11 '17 at 14:28