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.

Documentation for upgrading site in "Multi site network"

November 15, 2012 4:55am

Subscribe [2]
  • #1 / Nov 15, 2012 4:55am

    John-Smith

    4 posts

    Hello,

    My customer have the following set up of Expression Engine.

    Site 1 - Works as the “mothership”
    - Site 1.1 - Upgraded and works fine
    - Site 1.2 - Upgraded and works fine
    - Site 1.3 - Not upgraded, doesn’t work with the latest PHP-version.

    So I’m about to ugprade “Site 1.3”.

    My question is where can I find proper documentation on how to upgrade a “slave” site? And not just the “mothership”.

  • #2 / Nov 15, 2012 11:55am

    Boyink!

    5011 posts

    Is this an MSM install?

    I’m not sure what you mean by slave site.

  • #3 / Nov 16, 2012 3:47am

    John-Smith

    4 posts

    Thanks for answer! First time working with EE.

    But site 1.1, 1.2 and 1.3 is dependent on site 1.0. Site 1.0 is where the admin panel is. Is it more clear what I mean?

  • #4 / Nov 16, 2012 9:29am

    Boyink!

    5011 posts

    Yes and no. 😉

    Are all the templates that create the pages in the ‘master’ site?

    How do you add content to the sub-sites?

    I’m guessing this is one EE install - either using the Multi-Site Manager add-on or not.  But then again if it were you wouldn’t upgrade them independently as it would all happen at once.

    Are there different database credentials for the sub-sites?

    Did you create these sites for them?

  • #5 / Nov 19, 2012 3:34am

    John-Smith

    4 posts

    Thanks for answer.

    It have one database which all sites connect to. The “slave” sites have in there index.php a line where it refers to the “master” site, like:

    $base_path = ($_SERVER['SERVER_NAME'] === 'slavesite.com') ? '../mastersite.com' : "/var/www/www.mastersite.se/wwwroot";

    Content is added through the admin panel of the “master” site.

    No, I did not create the site for them.

    The admin panel (from the “master” site) tells me this:
    v2.5.2 - Build Date: 20120606 - © Copyright 2003 - 2012 EllisLab, Inc.

  • #6 / Nov 19, 2012 9:19am

    Boyink!

    5011 posts

    Well, I’m lost then.

    This is an MSM install, which means it’s really one EE install that spits out 4 sites. Upgrades happen all at once.

    How have you ‘upgraded’ some sites and not others?

    What about the one site doesn’t work with PHP? Is it template-level PHP that isn’t working?

  • #7 / Nov 19, 2012 10:22am

    John-Smith

    4 posts

    Strange.

    I try to be even more specific.

    Client have an VPS. All sites (what I call it master site, where the admin panel is and the slave site) are at the same level.

    /var/www/www.mastersite.com/wwwroot/
    /var/www/www.slavesite1.com/wwwroot/
    /var/www/www.slavesite2.com/wwwroot/
    /var/www/www.slavesite3.com/wwwroot/

    Slavesite1 and Slavesite2 all have the same file structure:
    - css
    - images
    - js
    - old*
    —templates
    —- _includes
    ——_footer.php
    ——_head.php
    ——_latest_news.php
    ——_masthead.php
    ——_subnav.php
    —- root
    ——index.php
    ——news.php
    ——page.php
    ——staff.php
    —index.php
    —path.php
    —phpinfo.php
    - uploads
    - .htaccess
    - favicon.ico
    - index.offline
    - index.php

    * I think this folder is interesting thats why I “show” it. Other folders contains more files, tell me if you want to now what a specific is containing.

    Slavesite3 which I try to update have a file structure that is’nt the same:
    - css
    - en
    - images
    - js
    - templates
    —_includes
    —- _footer.php
    —- _head.php
    —- _header.php
    —site
    —- index.php
    —- news.php
    —- page.php
    - uploads
    - favicon
    - index.php
    - path.php
    - phpinfo.php

    In Slavesite1 and Slavesite2 there is no path.php file, its all in the “old” directory, telling me (if Im not wrong) some sort of update have been done. Because the code in this file (slavesite1/old/path.php) is the same as in slavesite3/path.php.

    Does this help anything?

    I have’nt updated the site another person have.

    Maybe Im wrong about PHP-version. I have checked everything from the old host to the new (in settings) get error for $system_path, although it is the right.

    <?php
    
    // ------------------------------------------------------
    // DO NOT ALTER THIS FILE UNLESS YOU HAVE A REASON TO
    
    // ------------------------------------------------------
    // Path to the directory containing your backend files
    
    $system_path = "/var/www/www.mastersite.se/wwwroot/";
    
    // ------------------------------------------------------
    // MANUALLY CONFIGURABLE VARIABLES
    // See user guide for more information
    // ------------------------------------------------------
    
    $site_name = 'slavesite3';
    $template_group = "";
    $template = "";
    $site_url = "";
    $site_index = "";
    $site_404 = "";
    $global_vars = array(); // This array must be associative
    
    // detect language depending on domain name in use
    $global_vars['lang_km'] = 'se';
    ?>
  • #8 / Nov 19, 2012 12:15pm

    Boyink!

    5011 posts

    There’s a lot going on here - have you read through:

    http://ellislab.com/expressionengine/user-guide/cp/sites/install.html

    ?

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

ExpressionEngine News!

#eecms, #events, #releases