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.

Removing the default_site (id 1) from MSM

September 01, 2011 11:41am

Subscribe [1]
  • #1 / Sep 01, 2011 11:41am

    Gregory Maher

    25 posts

    Hi all,
    We have a bit of an odd situation. Our client is using EE2 and MSM to run 3 sites. Let’s call them Original Site (id 1), New Site (id 2) and Developer Site (id 3). Original Site is no longer being used and we’d like to remove it and have MSM default to New Site (id 2). Then, we’d like to develop an Affiliate Site, which would then essentially become (id 4), but we’d still only be using MSM to manage three sites.

    We thought about creating a new installation of EE on a new server and recreating our setup there with New Site as the initial site created. However, with all of the plugins and subdomains being used for the Developer Site, that didn’t seem reasonable. And, we thought about simple copying the New Site templates to the Original Site within EE, but we cannot move the Channels.

    Is there a way to delete the original default_site and have EE recognize id 2 as the new default? I’d prefer to not have to change any site_id content in the database manually as that presented us with problems previously.

    I’d be happy to provide any additional detail if helpful.

    Thanks!

    Greg

  • #2 / Sep 01, 2011 6:59pm

    Lisa Wess

    20502 posts

    Hi gregory17,

    There isn’t an out of the box way to remove site_id 1.  You would need to make a good, verified backup manually modify the database to remove it.

    The safer option may be to purchase an additional site and use that, and simply leave site 1 unused.

    I know it’s not ideal, but does that help?

  • #3 / Sep 01, 2011 7:03pm

    Gregory Maher

    25 posts

    Hi Lisa,
    Thanks for the reply. I didn’t think there was an easy way to do this. I just thought I’d check to be sure. I’m thinking we may simply recreate the New Site in the Original Site space and go from there. It will be a pain, but will be more reliable (I think) than modifying the database manually (which I never like doing).

    I’d rather not purchase an additional site license and have the unused site sitting there. Mainly because that’s what EE defaults to on login and it’s a (albeit small) pain to have to choose New Site every time we login to make edits.

    Thanks again for the reply. I’ll let you know if I have any other issues/questions. But for now you can go ahead and mark this as resolved. Sound good?

    Greg

  • #4 / Sep 01, 2011 8:54pm

    Lisa Wess

    20502 posts

    Sounds good, Greg.  I wish I had a better solution, but what you said is accurate.

    If you do have other questions, please let us know.  Thank you and have a wonderful evening!

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

ExpressionEngine News!

#eecms, #events, #releases