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.

Migrating Site to another server

June 24, 2010 3:07pm

Subscribe [4]
  • #1 / Jun 24, 2010 3:07pm

    Michael Dixon

    22 posts

    Hi all. I installed and dev’d a 2.0 install successfully a few weeks ago, ran great. However I am now moving my hosting from a media temple gs to a dv and need to move this ee site.

    I could not find much info on the process for 2.0 so I played it by ear, maybe made some noob mistakes -

    DB
    (1) I exported sql, saved
    (2) imported it into new db - no issues (as of yet).

    Site Files
    (3) archived the entire html folder from the old server,
    (4) wget that archive to the new server,
    (5) extracted and edited permissions.

    I am now getting a 403 Forbidden error.

    Also, although not related to this issue, I could not find a config.php anywhere in which to add my new db info?

    Any help would be greatly appreciated!


    Michael

  • #2 / Jun 24, 2010 3:38pm

    Ingmar

    29245 posts

    Have you seen this article? Explains the whole issue rather nicely, I think.

  • #3 / Jun 24, 2010 3:39pm

    Michael Dixon

    22 posts

    Ingmar, you are quick - you adde dyour comment as I was adding mine!

    So I got the Forbidden error solved by wiping everything and doing the steps outlined above again… site brings up, of course, a database error. Where is the config file for me to add the new info into?

    Also, my control panel brings up a blank page, going to check permissions on that one.


    The steps above seem to be for an older version - stating to edit my /path.php and {system}/config.php - i have neither of these files…?

  • #4 / Jun 24, 2010 3:50pm

    Ingmar

    29245 posts

    Yes, this is for 1.6. The details for 2.0 are a little different, the config file is in .../system/expressionengine/config/config.php now, and path.php no longer exists, instead you edit the main index.php. It’s well-documented, just open it in a text editor.

  • #5 / Jun 24, 2010 3:55pm

    Michael Dixon

    22 posts

    Ingmar, there is no db info in this file? Do I have to add it manually? If so, what is the syntax?

  • #6 / Jun 24, 2010 3:57pm

    Michael Dixon

    22 posts

    nevermind - found it in {system}/expressionengine/config/database.php -

  • #7 / Jun 24, 2010 4:06pm

    Michael Dixon

    22 posts

    I got it working thanks - but I am gettign an error:

    A PHP Error was encountered

    Severity: Warning

    Message: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/var/www/vhosts/poaonline.org/httpdocs/../themes/) is not within the allowed path(s): (/var/www/vhosts/poaonline.org/httpdocs:/tmp)

    Filename: libraries/Core.php

    Line Number: 243

  • #8 / Jun 24, 2010 4:15pm

    Ingmar

    29245 posts

    Looks like you’re almost there 😊 This is a warning about an open_basedir restriction. Ask your host about it, and preferably have them turn it off.

  • #9 / Jun 24, 2010 4:37pm

    Michael Dixon

    22 posts

    found a kb article on how to turn that off on a per domain basis - thanks for your help Ingmar!

  • #10 / Jun 24, 2010 4:56pm

    Ingmar

    29245 posts

    So, you’re all set? Just making sure.

  • #11 / Aug 07, 2010 8:37pm

    Paw Paw

    43 posts

    I got it working thanks - but I am gettign an error:

    A PHP Error was encountered

    Severity: Warning

    Message: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/var/www/vhosts/poaonline.org/httpdocs/../themes/) is not within the allowed path(s): (/var/www/vhosts/poaonline.org/httpdocs:/tmp)

    Filename: libraries/Core.php

    Line Number: 243

    Go to the “global template preferences” and make sure the path is not still pointing to the old server

  • #12 / Aug 08, 2010 3:34pm

    Greg Salt

    3988 posts

    Hi Michael,

    How are you doing with this now?

    Cheers

    Greg

    @Paw Paw, thanks for helping out.

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

ExpressionEngine News!

#eecms, #events, #releases