I tired to re-index magento 2.0.7 using CMD with command of php bin/magento indexer:reindex but i received php is not recognized as an internal or external command,operable program or batch file.
Please help me in this
I tired to re-index magento 2.0.7 using CMD with command of php bin/magento indexer:reindex but i received php is not recognized as an internal or external command,operable program or batch file.
Please help me in this
Try This.
open cmd and run it as administrator.
C:\wamp\bin\php\php5.5.12>php.exe C:\wamp\www\Magento\www\bin\magento indexer:reindex hope this will help you.
if you are using windows then run this command in cmd
C:\wamp\bin\php\php5.5.12>php.exe C:\wamp\www\Magento\www\bin\magento indexer:reindex
and if you want to reindex only one indexer then write following command:
C:\wamp\bin\php\php5.5.12>php.exe C:\wamp\www\Magento\www\bin\magento indexer:reindex indexer_name.
where indexer_name can be found by typing following command :
C:\wamp\bin\php\php5.5.12>php.exe C:\wamp\www\Magento\www\bin\magento indexer:info
Hope it helps
php bin/magento indexer:reindex using cmd you can reindex cache. In order to run php client as command in window you need to set php as environment available How to set the env variable for PHP?
After that you can run any of magento 2 cli command from cmd like
php bin/magento indexer:reindex You have to add PHP in environment variable. There are two ways to add environment variable, through MyComputer property and another is command prompt terminal.
I suggest you to use cygwin software for windows system it works like linux in windows system,
setx PATH "%PATH%;[php bin path]"
After configured PHP in environment variable, you reindex magento using
php bin/magento indexer:reindex Looks like you don't have installed composer in your machine. So first you need to install composer to perform that operation.
Download composer by visiting this link
You need to add path of your php.exe file in you environment variable section.
You can add like below:
Restart command prompt to make it effect.