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.

Upgraded to MSM 2.1.3 but site urls are set to default

August 09, 2012 1:01am

Subscribe [2]
  • #1 / Aug 09, 2012 1:01am

    lebisol

    2234 posts

    I just upgraded to EE 2.5.2 and MSM 2.1.3
    Odd thing is when I click on the ‘View Site’ in upper right corner it leads to default site. Second and third sites are accessible when I manually enter url. Each site/folder has index.php with the correct config settings:

    $system_path = '../system';
    
    
     $assign_to_config['site_name'] = 'name2';
     $assign_to_config['cp_url'] = 'http://www.mysite2.com/system/';
     $assign_to_config['site_url'] = 'http://www.mydomain2.com';

    Any ideas?

  • #2 / Aug 09, 2012 12:38pm

    Shane Eckert

    7174 posts

    Hey lebisol,

    Have you updated your admin.php file as well?

    Here is an example of a working site.

    //CONFIG//
    $config['cp_url'] = "http://engine.dev/admin.php";
    $config['doc_url'] = "http://ellislab.com/expressionengine/user-guide/";
    $config['is_system_on'] = "y";
    $config['allow_extensions'] = "y";
    $config['site_label'] = "Test 23";
    $config['cookie_prefix'] = "";
    $config['multiple_sites_enabled'] = "y";
    
    index.php and admin.php site 1
    NO CHANGES
    
    index.php and admin.php site 2
    $system_path = '../system';
    /*---------------------------*/
    $assign_to_config['site_name']  = 'msm_test';
    $assign_to_config['cp_url'] = 'http://msm.dev/admin.php';
    $assign_to_config['site_url'] = 'http://msm.dev';
    
    --- admin ---
    $system_path = '../system';
    /*---------------------------*/
    $assign_to_config['site_name']  = 'msm_test';
    $assign_to_config['cp_url'] = 'http://msm.dev/admin.php';

    I hope this helps.

    Thank you,

  • #3 / Aug 09, 2012 1:03pm

    lebisol

    2234 posts

    Hi Shane,
    I thought use of ‘admin’ page is optional to hitting ‘system’ folder?!

    Anyhow, I added the ‘admin.php’ (difference from ‘index’ being there is no $assign_to_config[‘site_url’] variable defined) into ‘/public_html/site2/’ and the change made no difference in CP under ‘View Site’ link.

    Thanks again.

  • #4 / Aug 10, 2012 10:26am

    Shane Eckert

    7174 posts

    Hey lebisol,

    You are correct, the admin is option as it’s there to allow login to the msm site. If you are using admin.php then you would need to edit the file, if you are not, then no worries!

    If the configuration files are good, then those paths should be good and the drop down for the sites should link just fine.

    When you click on the right hand corner, do you get a drop down with the other sites listed? Or is it just a link to the current site?

    If there is a list of other sites, what URL do you see when you hover over those links?

    Thank you,

  • #5 / Aug 10, 2012 11:18am

    lebisol

    2234 posts

    Small change after implementing admin pages.
    Site 2 is now ok but the site 3 still the same issue.

    The drop down shows all sites with the correct short names but when I hover/click over 3rd site it shows/links to the site I am logged into - the default “site1.com” vs. expected “site3.com”.
    If I go to “site3.com/system” it redirects me to “site1.com/404” (as expected since there is no such folder) while if I type in “site3.com/admin.php” I am in CP with the same issue as above.

    Thanks again.

  • #6 / Aug 10, 2012 4:45pm

    Shane Eckert

    7174 posts

    Hey lebisol,

    Can you show me the config files for the third site?

    Are they identical aside from hostname/domain as site 2?

    Thank you,

  • #7 / Aug 10, 2012 6:55pm

    lebisol

    2234 posts

    Yap, just did copy/edit of index and admin just to eliminate doubt 😊
    Still nothing…
    Just to make sure:

    Default site (site1):
    index.php and admin.php site1
    NO CHANGES other than declaring my system path.

    site2 and site3 respectively

    $system_path = '../system';
    /*---------------------------*/
    $assign_to_config['site_name']  = 'site2';
    $assign_to_config['cp_url'] = 'http://site2.com/admin.php';
    $assign_to_config['site_url'] = 'http://site2.com';
    
    --- admin ---
    $system_path = '../system';
    /*---------------------------*/
    $assign_to_config['site_name']  = 'site2';
    $assign_to_config['cp_url'] = 'http://site2.com/admin.php';

     

  • #8 / Aug 13, 2012 2:57pm

    Dan Decker

    7338 posts

    Hi lebisol,

    Have you made sure to enable the MSM in the Control Panel under General Configuration?

    Uploading the files is only part of the process, you have to tell ExpressionEngine to “turn on” multiple sites in the Control Panel as well.

    Double check that and let us know!

    Cheers,

  • #9 / Aug 13, 2012 3:52pm

    lebisol

    2234 posts

    Hi Dan,
    Sure, that setting was on but I did a quick ‘save’ and no love.

  • #10 / Aug 14, 2012 3:59pm

    Dan Decker

    7338 posts

    Hi lebisol,

    I sent an email request for more information. I look forward to getting a look at this!

    Cheers,

  • #11 / Aug 14, 2012 4:11pm

    lebisol

    2234 posts

    Got it, responded.
    Thank you.

  • #12 / Aug 14, 2012 5:33pm

    Shane Eckert

    7174 posts

    Hey lebisol and any onlookers,

    The base url in one of the sites was set incorrectly. Correcting that fixed the issue.

    All is well.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases