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.

Help! Domain1 SITE URL keeps rendering the CP Home in an MSM vers. 2.1 configuration!**

September 06, 2011 9:03pm

Subscribe [6]
  • #16 / Sep 09, 2011 11:32am

    digigumball

    37 posts

    It sounds as if you might have saved your admin.php file over your index.php. You may need to grab a new index.php file from default install files.

    Not a chance!  I know these files and have been very careful with my edits.  Something else is going on.

    I am switching between 2 different directory structures seen below and changing cp_url parameter in CP and both the index &admin; php files to see if I can fix this…

    VERS 1 Original as the ee docs suggest:

    Library/Webserver/Documents (root directory),  this is the path to domain1.com:

    └── domain1
      ├── admin.php
      ├── index.php
      ├── images
      ├── system
      └── themes
    └── domain2
      └── index.php
    └── domain3
      └── index.php

    Index.php only changed & uncommented variables are:  (copied into both domain1 & 2 folders)

            $system_path = ‘./system’ ;

    AND MSM variables

    $assign_to_config[‘site_name’]  = ‘default_site’;
    $assign_to_config[‘cp_url’] = ‘http://domain1.com/domain1/admin.php’;
    $assign_to_config[‘site_url’] = ‘http://domain1.com’;

    VERS 2 Current

    Library/Webserver/Documents (root directory),  this way the path to admin.php & index.php is in the root directory:

    └── Document (webroot)
          ├── admin.php
          ├── index.php
          └── domain1
            ├── index.php
            ├── images
            ├── system
            └── themes
          └── domain2
            └── index.php
          └── domain3
            └── index.php

    System relative path -no change:    $system_path = ‘./system’ ;

    but I did change the MSM variables by deleting the 2nd doman1 in the cp_url path since the location of admin.php has changed:

    $assign_to_config[‘site_name’]  = ‘default_site’;
    $assign_to_config[‘cp_url’] = ‘http://domain1.com/admin.php’;
    $assign_to_config[‘site_url’] = ‘http://domain1.com’;

    Again, now the CP is fine and switching between all 3 domains, I just do not see the domain1 site.

    Any thoughts?

  • #17 / Sep 09, 2011 6:10pm

    LMO

    203 posts

    Are you changing the webroot directory to domain1 with your current setup?

    The way we setup our EE and MSM install is to move the system folder out of the webroot so it looks like this:

    /var/www/vhost/sites/ 
    └──system/
      └──expressionengine/
      └──codeigniter
      └──index.php
    └──domain1/ ( www root for domain 1)
      └──images/
      └──index.php
      └──admin.php
    └──domain2 
      └──images/ ( www root for domain 2)
      └──index.php
      └──admin.php
    └──domain3
      └──images/ ( www root for domain 3)
      └──index.php
      └──admin.php

    then we use this for each index and admin file

    $system_path = '../system';

    Not sure if this helps you but you might want to check your access.log to make sure your loading the correct page.

  • #18 / Sep 09, 2011 6:28pm

    digigumball

    37 posts

    Ah, I see VIM…

    Ok, I’ve restructured based your directory structure above, and everything is working with the exception of seeing the domain1 site as before with the original structure…

    I literally follow the directory structure seen in the user guide here  As you see the user guide clearly shows the system folder within the domain1 folder..do you agree? this is possibly where I’ve been stuck at.  I thought burying the system in domain1 might also be more secure??

    └── domain1
      ├── admin.php
      ├── index.php
      ├── images
      ├── system
      └── themes
    └── domain2
      └── index.php
    └── domain3
      └── index.php

    Additionally, instead of using /var/www/sites (as web-root) on Mac, I’m using Library/Webserver/Documents (as root directory),  this is the path to domain1.com.  Is this OK, or should I use the sites directory under user?

  • #19 / Sep 09, 2011 8:30pm

    digigumball

    37 posts

    UPDATE:

    I’m wondering the reason I don’t see the ee “band” demo site is due to the Channel URL??  When I click on SITE under CP Home for domain1 I get the following URL, which brings up CP Home screen in CP instead of the expected domain1 site!!  😖

    This is the domain1.com URL:  http://domain1.com/uc/index.php?S=0&D=cp&C=homepage

    Now if I look at the channel for domain1 site found here:
    Domain1>CP Home>Administration>Channels>Channel Preferences:Information Pages>Path Settings

    Channel URL
    The URL to this particular channel   http://domain1.com/uc/index.php/about

    Any suggestions?

    Thank you in advance for your help!  😊

  • #20 / Sep 09, 2011 11:30pm

    LMO

    203 posts

    Did you change the domain1 root directory to Library/Webserver/Documents/domain1

  • #21 / Sep 09, 2011 11:37pm

    digigumball

    37 posts

    I changed the site_path in index.php & admin.php to

    'Library/Webserver/Documents/system"
      should I have changed it to
    'Library/Webserver/Documents/domain.com"

      instead?

  • #22 / Sep 09, 2011 11:52pm

    LMO

    203 posts

    No i mean your web server settings (apache?).

  • #23 / Sep 10, 2011 12:14am

    digigumball

    37 posts

    No, this is where I originally installed ee & msm.  This new install has never been moved.

  • #24 / Sep 10, 2011 12:33am

    LMO

    203 posts

    Sorry i was looking at your post #15 where you had the domain1 inside the documents folder.

  • #25 / Sep 10, 2011 10:03am

    digigumball

    37 posts

    Day 4 & trying to keep my sanity!  Some have taken a stab to help me, bu what I really need now is someone to see this first-hand how Kevin help Pahvid who had the same issue here

    I’d love to know what the resolution was to this issue, as I’ve had the exact same issues , and I was hoping someone would see this first-hand and try to figure out what’s happening! 

    You can see my posts here and scroll to the end of the posts.  I’ve made some progress by restructuring my directory structure thanks to VIM interactive, but the original problem of the browser gets automatically re-directed to the main CP home instead of domain1.com still remains!!!

    My live site can be temporarily seen here: http://www.undercurrentlabs.com, to provide some clues…

    Thank you in advance for your help!  😊

  • #26 / Sep 10, 2011 11:49am

    LMO

    203 posts

    I have some more free time today. If you have some time within the next hour or so shoot me a PM and I’ll see what I can do.

  • #27 / Sep 10, 2011 11:53am

    digigumball

    37 posts

    I shot you a PM 10 minutes ago! lol!

  • #28 / Sep 12, 2011 5:07pm

    Kevin Smith

    4784 posts

    Hi digigumball,

    Be on the lookout for an email from me. I’m going to do the best I can to help, but I may need to ask some clarifying questions about your setup. I’ve tried to follow the thread, but it’s all over the place at this point. Could you post a reply with the directory structure you’re currently using? Point out for me the web root of each MSM site as set in your web server configs.

  • #29 / Sep 12, 2011 10:25pm

    digigumball

    37 posts

    Hi Kevin,

    See the resolution to my issue at the post found here.

    Thanks for checking back!

  • #30 / Sep 13, 2011 3:50am

    John Henry Donovan

    12339 posts

    Thanks for the update digigumball. And thanks for the help Vim.  Feel free to start a new thread if you have any more questions.

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

ExpressionEngine News!

#eecms, #events, #releases