Moving Magento from a sub directory

Posted on September 10th 2009 1:52am Thursday, by Blaine

While moving a Magento cart from a sub directory to the root directory I ran into a problem. A problem that didn’t seem to be documented anywhere. My problem was specifically with APC cache. If you have this installed in Magento. If you have just moved Magento and are getting errors make sure you have:

  • Cleared the var folder of everything (I backed mine up just incase)
  • Change “admin/system/web/” and “secure/unsecured” in the database table “core_config_data” to your new URLs
  • Delete or Rename the file app/etc/use_cache.ser
  • Clear the APC cache (Different than var folder)

How to Clear APC Cache

If you have SSH, run php -r “apc_clear_cache();” or php -r “apc_clear_cache(‘USER_NAME_HERE’);”. I have not tested this method.

If you do not, I hope this works for you. This is what I did. I uninstalled APC cache from Magento in “app/etc/local.xml” by removing:

<cache>
<prefix>apc</prefix>
</cache>

Then I was finally able to login to my backend and clear the cache in the cache management section. I installed APC once again (by adding the code above back into local.xml) and everything was great!

As I was moving the cart I collected some links that may help you as they go into more detail on some of the things I mentioned.

Tutorials: How to move your Magento install

Similar Problems

Some errors I was getting

Missing locale file and Failed opening ‘Mage/Core/functions.php’

One Response to “Moving Magento from a sub directory”

  1. nice…

  2. Kasteler on September 14th, 2009 at 9:21 am

Leave a Reply