Free Gift FAQ
Q: Apply Rules does not work. After Loading server returns error 500.
A: Please try to apply the Catalog Price Rules with the following PHP script (placed in the shell directory). Just run it with php nameofscript.php and the rules will be applied.
<?php require_once '../Mage.php'; ini_set('display_errors', 1);
#Varien_Profiler::enable();
Mage::setIsDeveloperMode(true);
umask(0); Mage::app('default');
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
try {
Mage::getModel('catalogrule/rule')->applyAll();
Mage::app()->removeCache('catalog_rules_dirty');
echo Mage::helper('catalogrule')->__('The rules have been applied.');
} catch (Exception $e) {
echo Mage::helper('catalogrule')->__('Unable to apply rules.');
print_r($e);
}
Source: http://magento.stackexchange.com/questions/4100/apply-pricing-rules-does-not-work