2

I'm running Magento latest version in my localhost with xampp, it's great. but in admin panel, I see an error

One or more indexers are invalid. Make sure your Magento cron job is running.

I searching for a solving I get this one

indexer:reindex

but how I make it with xampp ?? or the localhost??

2
  • MikeMason's answer is correct, but you'd be better off running a VM of an actual linux install. The magento docs instructions would be a closer match to your environment. Commented Apr 15, 2016 at 21:44
  • You could also just set up cron for your local install. This is for MAMP, but the concept should be the same: magento.stackexchange.com/questions/109106/…
    – circlesix
    Commented Jun 25, 2017 at 17:14

3 Answers 3

3
  1. Open Xampp control panel
  2. Click on Shell button
  3. Exec the command --> php C:\xampp\htdocs\XXXXXX\bin\magento indexer:reindex

Obs: XXXXXX is your site.

1
  • 1
    This worked for me. Totally forgot that Xampp comes with Shell ready. Commented Jul 1, 2017 at 10:22
0

Open your Command Line (Terminal on Mac). In the Terminal, navigate to the folder you have installed Magento and then to the 'bin' folder. Once in that folder, enter the command:

php magento indexer:reindex

Wait for a while until the Terminal has completed processing the command. Refresh the Admin area and the warning should disappear.

1
  • 1
    i enter the "php magento indexer:reindex" the command line give me not recognized !!! @mikeMasin Commented Apr 15, 2016 at 21:58
0

Please use the below process to reindex from 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 - type -

cd\

Now you will go to root drive C:

then please type cd xampp\php

now you will see your location C:\xampp\php>

Now type php C:\xampp\htdocs\XXXX\bin\magento indexer:reindex

(where XXXX is your magento folder name)

Now you can see that indexing is being processed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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