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 setting up second site with MSM

May 05, 2012 6:47pm

Subscribe [2]
  • #1 / May 05, 2012 6:47pm

    ahattar

    4 posts

    I have created a second site with MSM following the instructions, but can’t get past this error:
    Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php

    Folder structure is as follows:

    |── site1 = domain.com (/httpdocs/ee/)
      ├── admin.php
      ├── index.php
      ├── images
      ├── system
      └── themes
    └── site2 = subdomain.domain.com (/httpdocs/site2/)
      ├── admin.php
      └── index.php

    admin.php & index.php for site2 have been updated:
    $system_path = ‘../ee/system’;

    I’ve also tried the full path with no luck.

    Any suggestions?

  • #2 / May 07, 2012 12:37pm

    Dan Decker

    7338 posts

    Hi ahattar,

    Thanks for your question!

    Indeed, I think the path may be at issue here. Since site 1 and site 2 are at the same level, you only need one leading “.”

    Try this:

    $system_path = './ee/system';

    The “.” essentially means “go up one level” - so “go up one level and then go into /ee/system”

    Let me know if you have any questions!

    Cheers,

  • #3 / May 12, 2012 6:24pm

    sandyyu

    6 posts

    Tried ‘./ee/system’ and no luck. :(

    I thought it might be the php setting for open_basedir, but it’s been updated to “none” by adding a vhosts.conf to the subdomain folder (this is hosted on Media Temple DV 4.0) and I still get the same error (Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php)

    Any other suggestions that I could try?

  • #4 / May 16, 2012 12:08am

    sandyyu

    6 posts

    This is hosted on MediaTemple DV4, Plesk 10.4.4—

    I updated the file structure as follows:

    |── site1 = domain.com (/var/www/vhosts/domain.com/httpdocs/ee/)
      ├── admin.php
      ├── index.php
      ├── images
      ├── system
      └── themes
    └── site2 = subdomain.domain.com (/var/www/vhosts/domain.com/httpdocs/ee/site2)
      ├── admin.php
      └── index.php

    site2/index.php is set up with system path:
    $system_path = ‘./system’;

    I tried using Plesk 10.4.4 to set the subdomain open_basedir value to none, but that didn’t work. So, I tried manually setting the value to:
    /var/www/vhosts/domain.com/httpdocs/ee/site2/:/tmp/:/var/www/vhosts/domain.com/httpdocs/


    Still no luck with getting the second site working with MSM. Please help.

  • #5 / May 16, 2012 3:49pm

    Dan Decker

    7338 posts

    Hi sandyyu,


    I’m sorry for your frustration.

    Based on your description, everything is set properly. The only thing to check is that there isn’t a version mis-match between ExpressionEngine and MSM. What version of each are you using?

    You may need to contact (mt) support for guidance on the open_basedir setting.

    What do you see when you visit your main site?

    What are the contents of /system/expressionengine/config/config.php ?

    Cheers,

  • #6 / May 16, 2012 8:32pm

    sandyyu

    6 posts

    Hi Dan -

    Thanks for your help. 😊

    EE:  v2.4.0 - Build: date 20120123
    MSM Version: 2.1.2 Build: 20120123

    What specific values should I send you for config.php?

    Thanks!
    Sandy

  • #7 / May 17, 2012 11:10pm

    sandyyu

    6 posts

    Ok, got past the above issue…

    Now, when I use MSM to switch to admin the 2nd site, it’s trying to point to a CSS location that’s not correct.

    Do I update /expressionengine/config/config.php with the right values? Will that impact the first site if I do so?

  • #8 / May 21, 2012 4:48pm

    Dan Decker

    7338 posts

    Hi sandyyu,

    Be careful with /system/expressionengine/config/config.php - those values will be applied to ALL MSM sites.

    Your config.php should look similar to this:

    //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'] = "Site Name";
    $config['cookie_prefix'] = "";
    $config['multiple_sites_enabled'] = "y";

    In addition, all MSM sites should point to the main site for:
    “URL to your “themes” folder”

    “Theme Folder Path”
    Under Admin-> General Configuration

    Can you check that for me for each site as well?

    Cheers,

     

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

ExpressionEngine News!

#eecms, #events, #releases