Search code examples
phpmagento2reindex

How to reindex magento2 in xampp?


I am trying to reindex magento2 in my localhost(xampp), but can't reindexing, this message is showing when type in command line, the image is

https://cloudup.com/cJmYZ3Uhkcy

i have also change advanced system setting in my computer, the image is

https://cloudup.com/c-Gpl03GMja

Any solution


Solution

  • Please use the below process to reindex from the command line.

    At first please check which drive you have installed XAMPP. (Ex. C:). So if you have XAMPP installed in drive C:

    go to command line (CMD) - type -

    cd\

    Now you will go to root drive C:

    Now you have to go over on Magento2 root folder so you can use below command

    cd C:\xampp\htdocs\Magento2folder

    Now you are on your Magento2 root folder

    Now type the following command

    php bin\magento indexer:reindex
    

    One Other method you can follow like this

    1) Open Xampp control panel

    2) Click on Shell button

    3) Now you have to move on Magento2 root folder so same you can type the following command

    cd C:\xampp\htdocs\Magento2folder

    Now you are on your Magento2 root folder

    Now type the following command

    php bin\magento indexer:reindex