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.

Problems logging in to Control Panel after installing Multiple Site Manager

December 21, 2011 10:14pm

Subscribe [2]
  • #1 / Dec 21, 2011 10:14pm

    justinkwithj

    25 posts

    I just successfully got MSM up and running and now I’m only able to login to the control panel of either of the two sites by using http://www.site2.com/admin.php

    I can no longer log into site1 by going to http://www.site1.com/system.  I’d like for users that have access to both sites to be able to login from http://www.site1.com/system or www.site2.com/admin.php.  I’d like for users that have access to only one of the sites to login from that site.  Right now a user with access only to site1 would have to go to site2 to login. 

    Any suggestions?

  • #2 / Dec 22, 2011 8:43pm

    Sean C. Smith

    3818 posts

    Hi justin,

    This is definitely odd, I’m sure we’ll be able to work this out.

    When your users visit site1.com/admin.php are they able to login?
    What happens when your users visit site1.com/system ? do they see the login screen?
    Are there any errors present?

    What version of EE and MSM are you using?

    Sean

  • #3 / Dec 23, 2011 12:42am

    justinkwithj

    25 posts

    Sean,

    When your users visit site1.com/admin.php are they able to login?

    No, they can’t login from either site1.com/admin.php or site1.com/system

    What happens when your users visit site1.com/system ? do they see the login screen?

    In both scenarios (site1.com/admin.php and site1.com/system) the control panel login screen appears as normal but when I press enter the page just refreshes and the username and password fields are cleared out.

    Are there any errors present?

    No errors are present when attempting to loggin in from either site1 admin.php or /system with debugging turned on in site1 index.php.  There are also no errors returned when I attempt to login using a correct username and incorrect password.

    What version of EE and MSM are you using?

    I’m using EE v2.3.1 - Build: date 20111017 and MSM Version: 2.1.1 Build: 20111011.

    Thanks

  • #4 / Dec 23, 2011 5:13pm

    Sean C. Smith

    3818 posts

    Justin,

    I’d like to take a look under the hood and see if theres anything I can do directly in the site. Be on the look out for an email from me.

    Sean

  • #5 / Dec 23, 2011 11:03pm

    justinkwithj

    25 posts

    Sean, I sent in the login request form.  Looking forward to see what you come up with.  Let me know if you have any questions.

  • #6 / Dec 27, 2011 1:30pm

    Dan Decker

    7338 posts

    For the folks following along, we are working with Justin behind the scenes and will update this thread accordingly once we have the answer.

    Thanks!

  • #7 / Dec 28, 2011 1:33pm

    Dan Decker

    7338 posts

    Hi Justin,

    I’m happy to report that I got you all sorted out!
    There were a couple of things going on here that were causing your troubles. First, I fixed up some MSM variables in your site_2 admin.php:

    $assign_to_config['site_name']  = ’site_2_name';
    $assign_to_config['cp_url'] = 'http://site_2.com/admin.php';

    Next, I set a new value for some variables in your master config.php and commented out some of the cookie related variables:

    $config['cp_url'] = "http://site_1.com/admin.php";

    I’ve changed the sensitive info here to “site_1” and “site_2”

    I tested login to both sites in Safari and Chrome. I also tested that I was able to switch between sites in the Control Panel without any problems.

    If you need anything else, please let us know!

  • #8 / Dec 28, 2011 11:15pm

    justinkwithj

    25 posts

    Dan, thank you for the help. I hope that my difficulties weren’t due (...cough ...cough) solely to user error.  I don’t remember seeing anything about modifying the master config.php when I was installing MSM in the user guide.  Is that something I missed or is a special modification needed for my circumstance?  Feel free to close this thread.

  • #9 / Dec 29, 2011 4:21pm

    Dan Decker

    7338 posts

    Hi Justin,

    I’m glad I was able to help!
    Just so you know the order that preferences are processed:
    On the front end of the site:
    1) Settings stored in the database
    2) Settings in each site’s index.php (will override the database)
    3) config.php (will override the database and index.php)

    On the Control Panel side:
    1) Settings stored in the database
    2) Settings in each site’s admin.php (will override the database)
    3) config.php (will override the database and admin.php)

    Anything in config.php will always trump the value set in any other area, on either the front end or the Control Panel.

    If you need anything else in the future, just let us know!
    Cheers!

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

ExpressionEngine News!

#eecms, #events, #releases