I stumbled upon a weird problem with Magento indexer. I tried to run it via command line, but, no matter what I write, I get back the help screen. Even if I run php -f indexer.php info, I just get the help screen, but no error messages, either on screen or in the system log. What should I check to find out why the indexer doesn’t want to run?
Thanks in advance for the answers.
I found the answer. On the server where the script doesn’t want to run, I have to use
php-cliinstead ofphp. It may have something to do with the server configuration.I ran it as
php-cli indexer.php infoand I got the expected result.