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.

Multiple Site Manager - How Best to Move SiteB Directory Outside of SiteA Directory

July 26, 2011 7:05pm

Subscribe [4]
  • #1 / Jul 26, 2011 7:05pm

    kbgn

    8 posts

    Hi,

    We have a client that has two newly created sites within EE using MSM.  According to documentation and the hosting provider (enginehosting) it seems the best directory set up is to have a separate SiteA directory and a separate SiteB directory that is not inside of SiteA.  The developer that is working on this project created the SiteB directory inside of SiteA and they do not know how best to move it outside of SiteA into its own directory.  I realize that all the files/themes etc. do reside in the SiteA directory and the index.php file will reside in the SiteB directory and point to the system directory. 

    How can this be best changed in EE?  Are there changes that need to made in the DB as well as the EE control panel?  I am not looking at how to set up two sites in MSM but how a site within MSM can have its directory changed? 

    This client will most likely be adding another site in the near future and want to make sure the directory structure is set up properly (multiple companies owned by larger company)

    Any help or direction would be much appreciated.  Thanks.

  • #2 / Jul 27, 2011 1:41pm

    Sue Crocker

    26054 posts

    Hi, kbgn.

    When it codes to MSM and EngineHosting, I disagree. I’ve always found it easier to have the second site be inside the initial site.

    Is there a particular problem you’re running into, or is it just a personal preference?

  • #3 / Jul 27, 2011 2:45pm

    Glen Coulthard

    16 posts

    Hi Sue,

    Is there a reason why you prefer this set-up? I’m not on EngineHosting, but have been trying to figure out “best practices” for setting up the MSM directory folder structure for my three sites. Although my sites are related, I would prefer them to be organized into separate folders—just for organization sake. Please convince/convert me to your way of thinking <grin>.

    —Glen

  • #4 / Jul 27, 2011 4:00pm

    Sue Crocker

    26054 posts

    Hi, Glen.

    I prefer to use the subdirectory route is to make it easier to put in the path to the /system folder, just have to add a .  instead of pathing from the root in some cases. In MediaTemple installs, I have to do it in separate folders, and once in a while miss when FTPing and put files at the same level as their html folder instead of inside it. 😊

    A lot of it is personal preference. I also use add-on domains with cPanel, and that’s the structure they use.

    Make sense?

  • #5 / Jul 27, 2011 6:11pm

    kbgn

    8 posts

    Hi Sue,

    Thank you for the response.  There are no problems that we are running into.  Simply based on MSM documentation and EH support the separate directory structure makes sense to me.  However, SITEB is running fine inside of SITEA.

    Do you know what would the best method be to change the directory for SITEB?  There has to be some changes in the database or is it something simple within EE.  The second site is not “live” yet so if we are going to standardize on the separate directories it would be best to do so now.

    This may be documented but I did not find how to do this.  Thanks for the help.

  • #6 / Jul 28, 2011 9:19am

    Sue Crocker

    26054 posts

    Hi, Kbgn.

    Take a look at the admin.php and index.php files in your siteB folder. You’ll need to change the paths in there to match your newer ones.

    Instead of using ../system for your system path, you’ll need to put in the full path. I use a small little .php file to figure this out.

    Where Am I?

    Does that help?

  • #7 / Aug 01, 2011 3:53pm

    kbgn

    8 posts

    Hi Sue,

    Thanks again for the response.  Is there anything that needs to be changed for Path Settings in Channel Management?  Thanks.

  • #8 / Aug 01, 2011 6:24pm

    Brandon Jones

    5500 posts

    Hi kbgn,

    Those settings are all URLs (not server paths!) so as long as the URL is correct you should be fine.

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

ExpressionEngine News!

#eecms, #events, #releases