ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Problems migrating EE from one server to another

April 03, 2011 12:46am

Subscribe [2]
  • #1 / Apr 03, 2011 12:46am

    jim_s

    4 posts

    I have an EE 2.1.3 site up, running, configured and populated as desired on server A. I now want to migrate to server B. I have followed the instructions here (http://ellislab.com/forums/viewthread/130555/), but when I go to the root url for the new server (http://serverb), I get a blank page. (http://servera brings up my site’s index page). If I go to http://serverb/system, I see the first page of the installation wizard. (going to http://servera/system takes me to the CP login page).

    In addition to duplicating the filesystem (from the htdocs root on down - including system, etc) and database for the dev system, I have checked that permissions are correct (ie, the same files/folders have the same permissions on both systems), and I have modified system/expressionengine/config/config.php and database.php.

    The instructions referenced above are not explicit about which params to set in these two files, but I have attempted to change the following as appropriate for the new server:

    config.php:
    cp_url (changed from “http://servera/system/index.php” to “http://serverb/system/index.php”)
    site_label (changed from “servera” to “serverb”
    header_location (changed from “http://servera” to “http://serverb”

    database.php:
    hostname (changed to point to new copy of DB)
    username (changed to user of new copy of DB)
    password (changed for user of new copy of DB)
    database (changed for name of new copy of DB)
    cachedir (changed absolute path to /serverb_path…/system/expressionengine/cache/db_cache/)

    Can someone please tell me if I’m missing something here? Am I changing the wrong params in one or both files? Are there alternative/additional instructions I should follow in copying a site from one server to another?

    Thanks,

    Jim

  • #2 / Apr 03, 2011 1:01am

    jim_s

    4 posts

    Two updates on this - #1, there was a system/installer directory present on serverb. I have temporarily removed that in an attempt to see if I can circumvent getting hit w/ the install wizard when going to http://serverb/system. That has occurred, though I now just get a blank page there, too. 😊

    #2, Its Firefox that’s showing me a blank page when I go to http://serverb or http://serverb/system. Just to rule out any potential client-side cache complications, I opened a new browser (chrome), and I’m now seeing a 500 error on both urls (ie, / and /system). (My apache log doesn’t show anything of interest though - its reporting some missing files, but its the same set of missing files that I’ve been getting on servera, which has been working fine. (References to those files need to be tracked down, but it doesn’t seem to be the cause of the problem I’m having on serverb, as its working fine w/ the same errors on servera.)

    Just in case this helps shed any light on anything.

  • #3 / Apr 04, 2011 10:07am

    Sue Crocker

    26054 posts

    If there is a /system/installer folder, EE assumes you are either in install mode, or update mode.

    So good that you got rid of the install folder.

    What I’d do to troubleshoot this is the following:

    Install EE 2.1.3 on the new server. Make sure that you have everything working as expected, that you can get into the control panel.

    (Don’t worry about templates, channels, etc. at this point. Just wanting to make sure that the baseline EE install works. It also wouldn’t hurt to run the Server Wizard before hand.

    After you have the install working, you have your config.php and database settings the way you want them. The next thing is to import your database. Make a backup copy of your working EE2.1.3 database *before* you put in the one you’re importing.

    Then see if you can get into your control panel.

    Does that help?

  • #4 / Apr 04, 2011 2:19pm

    jim_s

    4 posts

    Gaak… It appears that the person who set our OS up for us forgot to install the php_mysql library. It all seems to be working much better now that we can actually connect to a stinkin database. 😊

    I’ll update this if I have any further problems, but I’m cautiously optimistic that things are going to rapidly take a turn for the better!

    Thanks!!

  • #5 / Apr 06, 2011 9:20am

    Sue Crocker

    26054 posts

    Sounds good! Feel free to start a new thread if you have any more questions.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases