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.

Making a new site main site using MSM

October 16, 2011 6:33am

Subscribe [2]
  • #1 / Oct 16, 2011 6:33am

    David Roberts

    250 posts

    Hi,

    I want to change the current main site (site 1) and add a new site to be the main site.

    1 Is this possible ?
    2 Would it just be a matter of changing the paths and moving the site from public_html?

    EE v 2.2.2

  • #2 / Oct 16, 2011 7:33am

    Sue Crocker

    26054 posts

    It’s not that easy. There’s an older article on doing this with EE1.x, but it’s not something for the faint of heart.

    I’d use DataGrab to create an RSS feed of my first site, then develop locally and add the entries via Datagrab to the local install, then when everything works locally, change up the remote install.

    Does that help?

  • #3 / Oct 16, 2011 8:04am

    David Roberts

    250 posts

    Hi Sue

    That’s not what I want to do re article, he’s actually removing the site.

    I want to add a new site to be the main site (site 1) and have the current main site as site2 using MSM.

  • #4 / Oct 16, 2011 8:17am

    Sue Crocker

    26054 posts

    I’d still approach it the same way - using DataGrab.

  • #5 / Oct 16, 2011 9:28am

    David Roberts

    250 posts

    I spoke to EngineHosting about this and they said that it was possible by

    On the file system we can rename public_html/ to something else, moving the site to a new folder, and then create a new public_html/ and remapping a new domain in the load balancers.


    Is this not correct?

    BTW~ -The new site is not one that has been built yet.

  • #6 / Oct 17, 2011 11:55am

    Sue Crocker

    26054 posts

    Hi, David. That’s how they’d handle things, but that won’t make any database changes for you. It will make it easier to use DataGrab, but if you elect to do manual changes to the database, it may or may not work. All I can suggest is a good backup.

  • #7 / Oct 17, 2011 12:09pm

    David Roberts

    250 posts

    Sue

    but if you elect to do manual changes to the database, it may or may not work.

    Is it necessary to make changes to the database? If all I want to do is exchange the position of the sites so to speak.

    Can I not just change the paths for the original site 1?

  • #8 / Oct 17, 2011 2:53pm

    Lisa Wess

    20502 posts

    Hi, David,

    To clarify - I think Sue thinks you want to make one site have site_id 1 - that would require database changes.  But EE / MSM does not have a ‘main site’ or ‘primary site’ - just the first site, site_id 1, which is always there even in a non-MSM install.

    If you just want to change what is delivered for what URLs then what EngineHosting recommended will work. =)

  • #9 / Oct 17, 2011 3:09pm

    David Roberts

    250 posts

    Hi Lisa

    So I don’t screw things up with the database.

    I want the ‘new’ site/domain to be site_id 1 and the one that is site_id 1 a site under MSM.

    David

  • #10 / Oct 17, 2011 3:39pm

    Lisa Wess

    20502 posts

    Hi, David -

    I don’t quite understand what you want.  Are both sites under the same installation as MSM Sites?  Or are you trying to merge two separate installations?

  • #11 / Oct 17, 2011 3:48pm

    David Roberts

    250 posts

    Lisa

    Are both sites under the same installation as MSM Sites?

    Yes.

    The ‘new’  site_id 1 will be a ‘new’ site. The reason I wanted it like this is because not all third-party add ons are MSM compatiable which I may want to use on the new site.

  • #12 / Oct 17, 2011 4:09pm

    Lisa Wess

    20502 posts

    If you want to change site_ids then you will need to manually modify that information in the database.  Sue’s idea of an import/export could be one way to accomplish that; others have done database queries.  But that’s not supported and I would recommend making and verifying backups first in case something goes awry so that you can roll back/and experimenting first on a dev server.

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

ExpressionEngine News!

#eecms, #events, #releases