Magento can't reindex data through admin

If you're trying to reindex data under "Index Management" but can't, do the following to fix the problem...

in SSH.

rm -rf var/locks/*

Now try again, and you should be successful

If that doesn't work, also make sure the var/locks dir is writable.

chmod -R 777 var/locks

Tags: magento