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 Freelancer Live Site

January 26, 2011 9:15am

Subscribe [3]
  • #1 / Jan 26, 2011 9:15am

    ChrisSmith

    1 posts

    This question may be related to a resolved thread.

    I manage a Freelancer EE install at one domain but now want to change the domain server and go with a different hosting company.

    Is it possible to develop EE on the new server at the new host before pointing the clients domain to the new site? Can I access it temporarily with an IP address and have EE work even though the license is active on anther server?

    If not this, how can I develop EE on a new server and move an existing Freelancer license? When I tried to install it on the new server I got the alert that the installation was successful, but the login had an error even though I had deleted the installation folder.

  • #2 / Jan 26, 2011 9:31am

    Steven Grant

    894 posts

    Hi Chris,
    Why the need to develop on the new site if all you’re doing is changing server?

    What I usually do is customise my config.php file so that it will work on any server.

    $protocol                        = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") ? 'https://' : 'http://';
    $base_url                       = $protocol . $_SERVER['HTTP_HOST'];
    $base_path                      = $_SERVER['DOCUMENT_ROOT'];
    $system_folder                  = 'system';
    $uploads_folder                 = 'uploads';
    $uploads_path                   = $base_path . "/" . $uploads_folder;
    $uploads_url                    = $base_url . "/" . $uploads_folder;
    
    $config['app_version'] = '211';
    $config['install_lock'] = '';
    $config['license_number'] = '';
    $config['debug'] = '1';
    $config['cp_url'] = $base_url . $system_folder;
    $config['doc_url'] = 'http://ellislab.com/expressionengine/user-guide/';
    $config['is_system_on'] = 'y';
    $config['site_label'] = 'Site Name';
    $config['cookie_prefix'] = '';
    $config['allow_extensions']     = 'y';
    $config['hidden_template_indicator']    = '_';
    $config['autosave_interval_seconds']    = '0'; # Disabling entry autosave 
    
    $config['index_page']           = '';
    $config['base_url']             = $base_url . '/';
    $config['site_url']             = $config['base_url'];
    $config['cp_url']               = $config['base_url'] . $system_folder . '/index.php';
    $config['theme_folder_path']    = $base_path . '/themes/';
    $config['theme_folder_url']     = $base_url . '/themes/';
    $config['tmpl_file_basepath']   = $base_path . '/templates/';
    $config['word_separator']        = 'dash';
    $config['save_tmpl_files']         = 'y';
    $config['save_tmpl_revisions']    = 'y';
    $config['site_404']                = '/404';
    
    $config['emoticon_path']        = $uploads_url . '/smileys/';
    $config['captcha_path']         = $uploads_path . '/captchas/';
    $config['captcha_url']          = $uploads_url . '/captchas/';
    $config['avatar_path']          = $uploads_path . '/avatars/';
    $config['avatar_url']           = $uploads_url . '/avatars/';
    $config['photo_path']           = $uploads_path . '/member_photos/';
    $config['photo_url']            = $uploads_url . '/member_photos/';
    $config['sig_img_path']         = $uploads_path . '/signature_attachments/';
    $config['sig_img_url']          = $uploads_url . '/signature_attachments/';
    $config['prv_msg_upload_path']  = $uploads_path . '/pm_attachments/'; 
    
    // Debugging and performance
    $config['show_profiler']        = 'n'; # y/n
    $config['template_debugging']   = 'n'; # y/n
    $config['debug']                = '1'; # 0: no PHP/SQL errors shown. 1: Errors shown to Super Admins. 2: Errors shown to everyone.
    $config['disable_all_tracking'] = 'y'; # y/n
    $config['enable_sql_caching']   = 'n'; # Cache Dynamic Channel Queries?
    $config['email_debug']          = 'n'; # y/n

    You’ll also need to change your database.php to use your new database.

  • #3 / Jan 26, 2011 12:49pm

    Lisa Wess

    20502 posts

    Hi, Chris, welcome to the forums!

    As long as you are developing non-live, then have the site available only in one live location, you are fine license-wise.

    You can move your installation by just moving the database and files and updating some paths.  While you can customize config.php as Steven indicated, that’s not necessary for a one-time move.  Here is an FAQ on moving EE to another server.

    Hope that helps!

  • #4 / Jan 26, 2011 7:01pm

    gazaston

    128 posts

    Hi all,

    Lisa — the database of my local development id named differently from the remote one; is it purely a matter of changing the database name in database.php?

  • #5 / Jan 26, 2011 7:05pm

    Lisa Wess

    20502 posts

    Hi, Chris -

    Yes, you’ll need to update database.php to call the proper database after you move.

  • #6 / Jan 26, 2011 7:21pm

    gazaston

    128 posts

    Sorry if I’m being a bit slow on the uptake — so the name of the original database doesn’t have any influence on the structure? (I’m a total sql noob).

  • #7 / Jan 26, 2011 7:24pm

    Lisa Wess

    20502 posts

    Nope, so long as you change it in database.php, you should be good to go.  Are you having trouble with a server transfer? If so, it would be best to post in the technical support forum. =)

  • #8 / Jan 26, 2011 7:25pm

    gazaston

    128 posts

    I’ll give it another go, then post in the TS forum as you suggest. Thanks Lisa 😊

  • #9 / Jan 26, 2011 8:05pm

    Lisa Wess

    20502 posts

    My pleasure. =)

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

ExpressionEngine News!

#eecms, #events, #releases