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.

Moving servers - stumped.

February 05, 2011 9:48am

Subscribe [5]
  • #1 / Feb 05, 2011 9:48am

    e-man

    1816 posts

    I’ve moved dozens of sites but now I’m feeling like a noob again…
    Moved files and copied over database, edited config.php and database.php, so far so good,
    but I cannot login to the the cp because it’s still referring to the templates folder on the previous server.

    An Error Was Encountered
    
    Please make sure your folder is writeable. You must set the following folder to 777 (or equivalent write permissions on your server): /opt/www/vs04004/web/sensoa.gonzales.be/templates/

    So… I can’t login to change that path, can I change this in the config file somewhere? Stumped.

  • #2 / Feb 05, 2011 2:02pm

    e-man

    1816 posts

    Anyone?

    I’m dead in the water here and need to move this site today.
    If anyone has a link to a guide for moving an EE2 site that would help too.

  • #3 / Feb 05, 2011 2:42pm

    mindshare

    29 posts

    I am stuck at the same place -  trying to move servers. I moved everything over, checked permissions, edited config and database and now cannot login to the CP. Please post if you find any solution to this.

  • #4 / Feb 05, 2011 3:07pm

    mindshare

    29 posts

    Ok… adding or changing these lines in my config file did the trick:

    $config['cp_url'] = 'http://new_server';
    $config['cookie_domain'] = '';
    $config['cookie_prefix'] = '';
    $config['base_url'] = 'http://new_server';
  • #5 / Feb 05, 2011 3:09pm

    e-man

    1816 posts

    ALready had changed those,so that’s not causing it at my end. Glad you’re fixed though.

  • #6 / Feb 05, 2011 3:31pm

    e-man

    1816 posts

    To recap, the error message:

    An Error Was Encountered
    Please make sure your folder is writeable. You must set the following folder to 777 (or equivalent write permissions on your server): /opt/www/vs04004/web/sensoa.gonzales.be/templates/

    refers to my templates folder on the previous server and I can’t get to the login form to change this path. Please advise.

  • #7 / Feb 05, 2011 3:37pm

    Focus Lab Dev Team

    1129 posts

    If you have access to the config.php file you can manually override the setting (unless I’m missing something).

    $config['tmpl_file_basepath']  = "";

    Or just turn of saving templates as files temporarily

    $config['save_tmpl_files'] = 'n';
  • #8 / Feb 05, 2011 3:41pm

    e-man

    1816 posts

    Erik, I’ve tried that already but it’s not affecting anything, it’s as if the config file isn’t being read. Permissions have been checked and are OK.

  • #9 / Feb 05, 2011 3:43pm

    Focus Lab Dev Team

    1129 posts

    With ‘save_tmpl_files’ set to ‘n’ the system shouldn’t check if the folder is writable, should it?

    An easy way to see if the config is being used is to turn the system off in that file (unless the front end isn’t rendering either).

    Were you using any masked CP approach or is your /system/ directory within webroot?

  • #10 / Feb 05, 2011 3:46pm

    e-man

    1816 posts

    system directory is renamed abut in the root. Thing is the front end is showing the exact same error screen as the control panel screen. Setting system to off didn’t affect anything.

  • #11 / Feb 05, 2011 3:48pm

    Focus Lab Dev Team

    1129 posts

    Strange. Any interest in having an extra set of eyes on the files via FTP?

  • #12 / Feb 05, 2011 4:39pm

    Jérôme Coupé

    122 posts

    Hi there,

    I guess you did manually delete all cache files via FTP ?
    Cookies related stuff have done strange things to me in the past so double checking config.php for those can be something to look into as well.

  • #13 / Feb 05, 2011 6:10pm

    e-man

    1816 posts

    Turning off extensions allowed us to get in there, according to Erik it was a conflict with the Libraree extension. Phew!
    Thanks for all the help!

  • #14 / Feb 07, 2011 3:26am

    John Henry Donovan

    12339 posts

    Glad you are up and running again. As always 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