Magento Redis – How to Disable Redis When Moving Site to New Server

redis

I want to copy a Magento site with Redis cache to another server without Redis. Is this possible with just the steps as described here?

Probably that's not enough because it is looking for Redis which is not there.

Edit
I followed the instruction of seanbreeden, but that gives me an error:
Connection to Redis failed after 2 failures.

Below my local.xml file

<config>
    <global>
        <install>
            <date><![CDATA[Tue, 11 Mar 2014 20:31:26 +0000]]></date>
        </install>
        <crypt>
            <key><![CDATA[xxxxxxxxx]]></key>
        </crypt>
        <disable_local_modules>false</disable_local_modules>
        <resources>
            <db>
                <table_prefix><![CDATA[]]></table_prefix>
            </db>
            <default_setup>
                <connection>
                    <host><![CDATA[localhost]]></host>
                    <username><![CDATA[magento]]></username>
                    <password><![CDATA[xxxxx]]></password>
                    <dbname><![CDATA[db_magento]]></dbname>
                    <initStatements><![CDATA[SET NAMES utf8]]></initStatements>
                    <model><![CDATA[mysql4]]></model>
                    <type><![CDATA[pdo_mysql]]></type>
                    <pdoType><![CDATA[]]></pdoType>
                    <active>1</active>
                </connection>
            </default_setup>
        </resources>
        <session_save><![CDATA[files]]></session_save>  
    </global>
    <admin>
        <routers>
            <adminhtml>
                <args>
                    <frontName><![CDATA[admin]]></frontName>
                </args>
            </adminhtml>
        </routers>
    </admin>
</config>

And app/etc/modules/Cm_RedisSession.xml

<config>
  <modules>
    <Cm_RedisSession>
      <active>false</active>
      <codePool>community</codePool>
    </Cm_RedisSession>
  </modules>
</config>

Best Answer

Yes, with the additional step of removing the lines in app/etc/local.xml that involve Redis and removing any Redis extensions that you have installed. Most likely, the only one you'd have will be Cm_RedisSession. You can disable that extension by editing the app/etc/modules/Cm_RedisSession.xml file and changing the enabled node from true to false.

Your app/etc/local.xml should look similar to this on your new site:

<config>
<global>
<install>
  <date><![CDATA[Thu, 1 Jan 2015 19:00:00 +0000]]></date>
</install>
<crypt>
  <key><![CDATA[XXXXXXXXXXXXXXXXXXXXXXXXXXXX]]></key>
</crypt>
<disable_local_modules>false</disable_local_modules>
<resources>
  <db>
    <table_prefix><![CDATA[]]></table_prefix>
  </db>
  <default_setup>
    <connection>
      <host><![CDATA[DATABASE_HOST]]></host>
      <username><![CDATA[USERNAME]]></username>
      <password><![CDATA[PASSWORD]]></password>
      <dbname><![CDATA[DATABASE_NAME]]></dbname>
      <initStatements><![CDATA[SET NAMES utf8]]></initStatements>
      <model><![CDATA[mysql4]]></model>
      <type><![CDATA[pdo_mysql]]></type>
      <pdoType><![CDATA[]]></pdoType>
      <active>1</active>
    </connection>
  </default_setup>
</resources>
<session_save><![CDATA[files]]></session_save>
</global>
<admin>
<routers>
  <adminhtml>
    <args>
      <frontName><![CDATA[admin]]></frontName>
    </args>
  </adminhtml>
  </routers>
</admin>
</config>
Related Topic