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.

Multi Site Manager Problem

July 08, 2007 5:58pm

Subscribe [1]
  • #1 / Jul 08, 2007 5:58pm

    wemm

    26 posts

    Hi,

    I’ve installed the MSM and am confused by how you manage your domains, using this add-on.

    If I have 2 sites, SiteA.com and SiteB.net for instance, does the standard way of setting up $system_path take this into account?  In other words, will “$system_path = “www.SiteB.net”; work for this setup?

    Do both of the site urls, SiteA.com and SiteB.net, have to exist on the same physical website or can they be set to urls on different websites i.e. the way a vps is set up?

    It seems that when looking at the expression engine demo site for the MSM, the “Control Panel Demo” and the “Second CP Demo Site” both show the same url structures inside their system preferences > general configuration settings but looking at the urls for pmachine, codeigniter and expressionengine websites, they appear to have independent configuration settings.

    Any help would be great.

    Thanks.

    W.

  • #2 / Jul 09, 2007 3:22am

    wemm

    26 posts

    ok

    I have seen in the forums that all sites have to be in the same place but I still can’t get my head wrapped around how to deal with multiple domains, using this system.

    When I try to assign a different url for SiteB.net, under system preferences > general configuration, I lose all formatting inside my cp.

    I must be doing something wrong.

    Anyone?

    W.

  • #3 / Jul 09, 2007 11:31am

    Robin Sowell

    13255 posts

    I’m not sure how you have it set up- a subfolder for your second domain with a copy of index.php and path.php- correct?  Now- to make the FRONTEND of that site use the proper urls, the config there will need to have the siteB path used in the general config ‘URL to the root directory of your site’ setting.  But that won’t affect where you access the backend.  If you want to access the control panel for the b site using a url like myBsite.com/admin.php- you’d want to use masking access to the CP and put a copy of the admin file over in the ‘b’ subfolder.  (Which I haven’t done, as I don’t mind have a ‘central’ cp under the main domain and just having the frontend bits work of off the different domains.  But if you want the backend cp to be accessed via different urls, that’s how I’d approach it.  Make sense?)

  • #4 / Jul 09, 2007 12:11pm

    wemm

    26 posts

    Hi Robin,

    I am having problems with seeing this for some reason, any way.

    So far, I have it set up like this:

    SiteA.com is at httpdocs/SiteA.  I duplicated SiteA.com into SiteB.

    SiteB also resides in a folder called httpdocs/SiteB with a copy of index.php and path.php inside.  I have the system path set up as $system_path = “/SiteA’s_EESystemFolder/”; inside path.php.

    Is this right so far?

    W.

  • #5 / Jul 09, 2007 12:27pm

    Robin Sowell

    13255 posts

    Yep- right so far, assuming your system path is correct.  But I’m not sure if we’re talking about a backend issue or a frontend issue right now.  Er- can you link to a working frontend for either/both folders?  In other words- if you just had an html file in site a and an html file in site b- what links would currently show that html file?

  • #6 / Jul 09, 2007 12:47pm

    wemm

    26 posts

    Hi,

    [www.mysite.com/index.php] is the url to the main ee site (site a). 

    The url to an html file to what is supposed to be site b is: [www.mysite.com/siteb_folder/index.html].

    I hope this helps.

    W.

  • #7 / Jul 09, 2007 2:37pm

    wemm

    26 posts

    Robin,

    Ah, getting something different now.  Not exactly sure what but different.

    I will post again after some tests.

    W.

  • #8 / Jul 09, 2007 2:55pm

    wemm

    26 posts

    Right.

    Thanks for that bit of info…

    so the link to SiteB seems to finally be set properly inside > general configuration and the link is now making the right connection.  That much is great!!!

    However, I am still not sure of how to get SiteB to be accessible from the url; http://www.siteb.com.

    What am I missing here?

    Thanks.

    W.

  • #9 / Jul 09, 2007 3:54pm

    wemm

    26 posts

    Hi,

    I am still searching for a front end solution.

    Although I am now able to access the correct templates in SiteB using this url: http://mysite.com aka (SiteA)/siteb_folder/index.php/site/index/, I still don’t understand how to set the path to SiteB to be http://siteb.com/index.php.

    Any help with this would be appreciated.

    Thanks.

    W.

  • #10 / Jul 09, 2007 9:39pm

    wemm

    26 posts

    Hi,

    I am still looking for information on how to assign multiple domain names to a MSM installation.  I’m stuck.

    Has anyone done this?

    Thanks.

    W.

  • #11 / Jul 09, 2007 9:58pm

    Sue Crocker

    26054 posts

    wemm, you make a modification to the other site’s path.php file.

    $template_group = "";
    $template = "";
    $site_url = "";
    $site_index = "";

    You’d set the values for $site_url and possibly $site_index.

    Does that help?

  • #12 / Jul 09, 2007 10:07pm

    wemm

    26 posts

    Sue,

    That looks interesting, I will give that a try and post back.

    Thanks much.

    W.

  • #13 / Jul 09, 2007 10:32pm

    wemm

    26 posts

    Hi,

    So I guess you’re suggesting that I would have the SiteB.net domain name that I’ve just registered, assigned to one of the extra sites using $site_url = “www.SiteB.net”; 

    If this is the case, how do I get my registrar to know where to point my newly registered domain, so that it works out of site_b’s folder? 

    This is where I’m confused.

    W.

  • #14 / Jul 10, 2007 10:03am

    Lisa Wess

    20502 posts

    Greetings, wemm—

    I admit that I do not know the intricacies involved in how a domain gets to where, however your host should know this.  For instance, when I set up a new domain with EngineHosting, lets call it example.com, I emailed EngineHosting support something like this:

    Hi!

    Can you please set up a second domain for me, under my main account (lisajill.net), called example.com.  It is already registered so please let me know the correct nameservers to point it to, thanks!

    About an hour later I had my site:

    public_html -> all my main site files
    example -> empty and ready for example.com.  I stuck license.txt in there to test propogation and example.com/license.txt worked!  From there it was just a matter of following the MSM instructions.

    However, the domain pointing/initial setup does need to be done by you and your host.

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

ExpressionEngine News!

#eecms, #events, #releases