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.

MSM set up (sub)domains

October 06, 2011 11:49am

Subscribe [4]
  • #1 / Oct 06, 2011 11:49am

    coko

    119 posts

    EEv2.2.2 Build: 20110801
    MSM 2.1.0 - Build: 20110630

    At the moment I am moving a local MSM-site (the second site) to a remote server.
    This is my first attempt to this so I would appreciate any comments you might have on my approach.

    The directory set up is like this at the moment:
    1) public_directory/default_site
    2) public_directory/second_site_directory

    Is it better, like the User Guides states, to put every site in a seperate directory/folder like:
    1) public_directory/first_site_directory
    2) public_directory/second_site_directory

    Everything seems to work ok at the moment. But because of my limited experience I can’t oversee any possible future complications.
    For the time being I’m using a subdomain to access the site like: http://www.second.first-site.com.

    When the site is finished I want to point the right domain name to it because this is a complete redesign of an existing site. Which also means the domain will be moved from one host to another.

    Thanks in advance for your comments and advice!

  • #2 / Oct 06, 2011 12:22pm

    coko

    119 posts

    Well a short update:

    After doing some work on the second, I tried to login to the first site. Which fails ...

    The login screen loads but after entering user and pw the page loads again and nothing happens. No error message either.

    I can login on the second site ...

  • #3 / Oct 06, 2011 12:34pm

    coko

    119 posts

    Update again:

    I noticed that in my config-file the subdomain url was set for my cp.
    So I changed that to the main domain and that solved the problem of not being able to logon in on site 1.

    But now I can’t login on site 2, I get this error:

    An Error Was Encountered
    You are not authorized to access this page

     

  • #4 / Oct 07, 2011 3:40am

    John Henry Donovan

    12339 posts

    oxford,

    Which also means the domain will be moved from one host to another.

    it is probably your intention but just a reminder that all sites need to reside under the same hosting account.

    But now I can’t login on site 2, I get this error:

    What URL are you using to login into site2, second.first-site.com/admin.php?

    have you uncommented and amended the necessary $assign_to_config variables in yoru second site’s admin.php and index.php?

  • #5 / Oct 07, 2011 4:45am

    coko

    119 posts

    Hi John,

    Yes, sure same hosting accoount.
    And yes I’m using second.first-site.com/admin.php to login.

    I also have done the variables in admin and index:
    • For system path I gave a full url, relative didn’t seem to work
    • I gave the site short_name corresponding in MSM Edit Sites > Site Management
    • The cp url http://second.first-site.com/admin.php
    • In the index also the site url http://second.first-site.com.

    Update on the situation:
    What happens is this, when I try to log in I get the Error. After I delete the url in my address bar from my browser and then again visit the login page, I get straight into my CP. So I’m actually logged in. What I noticed is that the Error only occurs for the first time. When I log out and log in again there is no error. But when I close the browser window and choose a new window and log in again the error appears in the same manner.

    So maybe this has got some to do with Session Type?

    What do you think of the folder structure? Should I change that to two separate folders in the public folder:
    /public/site 1
    /public/site 2
    Because at the moment site two is a directory in site 1.

    (ps: I’m sorry for being so impatient but I also started a new thread, about this.)

  • #6 / Oct 07, 2011 11:15am

    coko

    119 posts

    I’ve gone ahead and changed the directory structure like this:
    /public/site 1
    /public/site 2

    Didn’t make much difference though.

    I’ve tried this approach also:
    http://expressionengine.com/wiki/Multi_Site_Login#Multi_Site_Login_for_EE2

    But at the moment I can only login from the second site.
    deep sigh ...
    Well weekend is near 😉

    Any suggestions?
    I think I might just trash one of the admin.php files

  • #7 / Oct 07, 2011 2:05pm

    coko

    119 posts

    Well it seems not all browsers are created equal ...

    At this moment in time I can:

    Login on both sites using Google Chrome, Safari refuses to login on 1st site, Firefox let me also login on both sites.

    Safari also displays the wrong favicon, it displays the icon from the first site on the second site.

    I will use FF and Chrome from now on ...

  • #8 / Oct 09, 2011 1:10pm

    coko

    119 posts

    Ok, at last sorted things out, and Dan explained, see thread: http://ellislab.com/forums/viewthread/201524/
    (sorry for the double thread)

    I noticed some problems before with auto completion on forms also while using Safari, so definitely something to keep in mind.
    Thanks for the support

  • #9 / Oct 09, 2011 10:43pm

    Dan Decker

    7338 posts

    oxford,

    I take this to mean that using my response in the other thread, that everything is sorted out with this?

    Cheers,

  • #10 / Oct 10, 2011 2:48am

    coko

    119 posts

    Yes, thanks

  • #11 / Oct 10, 2011 6:38pm

    Kevin Smith

    4784 posts

    Glad Dan was able to help get you squared away, oxford. Let us know if there’s anything else we can help with again in the future.

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

ExpressionEngine News!

#eecms, #events, #releases