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.

Some Questions About Setting Up an MSM Site

April 01, 2011 1:14pm

Subscribe [2]
  • #1 / Apr 01, 2011 1:14pm

    jschutt

    452 posts

    Hey Guys,

    I’m going through and trying to clean up some stuff with one of my MSM sites and I had a few questions.

    I believe I’ve gone through and followed all the instructions on how to set up the second site, but it was a 1.6x installation that has been since upgraded to 2.1.3.  Everything is working at the moment, but there are a few issues I’d like to sort if possible.

    The first thing is that this is set up through a subfolder.  So http://site2.com is available in a subdirectory of http://site.com.  What is a little strange is that when I try to access http://site.com/site2, I can get an old version of Site 2.  How can I avoid that?

    The second issue is that I can’t seem to get the template debugging to show up on Site 2.  It shows that it is enabled in the CP for Site 2, and it will show up in Site 1, but not in Site 2.  Curious!

    If I can get these sorted out, maybe some of my other questions will answer themselves!

    Thank you for your time 😊

    Jesse

  • #2 / Apr 02, 2011 2:32pm

    Greg Salt

    3988 posts

    Hi Jesse,

    For the first issue, can you clarify what you mean by ‘an old version of Site 2’? Is this older versions of your EE templates or something else entirely? For the second one, are you logged in as a Super Admin to your second site and not just switched to it in the CP? Does the Output Profiler appear for the second site in the CP?

    Cheers

    Greg

  • #3 / Apr 02, 2011 2:57pm

    jschutt

    452 posts

    Hey Greg,

    When I say an old version, what I’m seeing is some old templates, that were around since my 1.6 version of the site.  So I don’t know if they are stuck in the DB somewhere, because they aren’t in any of my current template files.  I have also since moved my template folder as well…

    What should I be seeing if I navigate to site.com/site2? 

    Let’s see if we can figure out this first issue and then I’ll dig more in the profiler stuff.

  • #4 / Apr 02, 2011 3:04pm

    Greg Salt

    3988 posts

    Hi Jesse,

    So, to clarify, the only file in http://site.com/site2 is the index.php file that runs your second MSM site? Is that correct? Are these old templates actually outputting data from your entries?

    Cheers

    Greg

  • #5 / Apr 02, 2011 3:08pm

    jschutt

    452 posts

    There are some other directories in the “ofc” folder (which is actually what Site2 represents).

    - images
    - index.php
    - register (which is a separate CI application)
    - scripts
    - sifr

  • #6 / Apr 02, 2011 3:15pm

    jschutt

    452 posts

    I suppose it is ok to post these urls, because it really helps clarify what I’m talking about.

    The main site is under http://www.campforestsprings.org and www.oakforestcenter.org is the MSM site in question.  So if you look at http://www.campforestsprings.org/ofc, you should see what I mean.

  • #7 / Apr 02, 2011 3:22pm

    Greg Salt

    3988 posts

    Hi Jesse,

    Have you made sure to sync your templates so that your external files are reflected and saved in the DB versions?

    Cheers

    Greg

  • #8 / Apr 02, 2011 3:25pm

    jschutt

    452 posts

    Yes, they are synced… according to the cp anyhow 😊

    What should be displaying at http://www.campforestsprings.org/ofc?  Should that be the home page of the MSM site?

  • #9 / Apr 02, 2011 5:14pm

    Greg Salt

    3988 posts

    Hi Jesse,

    Yes, if that subfolder is mapped as the location of the oakforestcenter.org domain then you will see that site’s content there. This is in large part to do with how your server is setup and how your server account management panel allows domain mapping to work. You might want to contact your host to ask them how to disable direct browsing access to a domain-mapped subfolder. With regards to the content that is displayed at the moment, can you please post the first 35 lines of the index.php file that is in that ofc directory?

    Cheers

    Greg

  • #10 / Apr 02, 2011 5:16pm

    jschutt

    452 posts

    <?php
    /**
     * ExpressionEngine - by EllisLab
     *
     * @package        ExpressionEngine
     * @author        ExpressionEngine Dev Team
     * @copyright    Copyright (c) 2003 - 2010, EllisLab, Inc.
     * @license        <a href="http://ellislab.com/expressionengine/user-guide/license.html">http://ellislab.com/expressionengine/user-guide/license.html</a>
     * @link        <a href="http://expressionengine.com">http://expressionengine.com</a>
     * @since        Version 2.0
     */
    
    /*
     * --------------------------------------------------------------------
     *  SYSTEM PATH
     * --------------------------------------------------------------------
     *
     * The following variable contains the server path to your
     * ExpressionEngine "system" folder.  By default the folder is named
     * "system" but it can be renamed for increased security.  If you
     * have changed the name of the system folder please indicate the
     * new name here, and include the server path.  The path can be a
     * simple relative path or it can be a full server path.
     * 
     */
        $system_path = '../mysystemfoldername';
    
    /*
     * --------------------------------------------------------------------
     *  ERROR REPORTING OVERRIDE
     * --------------------------------------------------------------------
     *
     * PHP and database errors are normally displayed dynamically based
     * on the authorization level of each user accessing your site.  
     * This variable allows the error reporting system to be overridden,
  • #11 / Apr 02, 2011 5:27pm

    Greg Salt

    3988 posts

    Hi Jesse,

    That looks fine. So, in the folder where you are saving templates can you see the templates for the OFC site? Just to clarify, you are working with your templates as flat files for both sites?

    Cheers

    Greg

  • #12 / Apr 02, 2011 5:31pm

    jschutt

    452 posts

    Yes, I’m using templates for both sites.  I think I might have an idea as to what is happening here…

    I’m using a dynamic config to pull in the {site_url}, so I bet that my style sheets are looking to the wrong location since {site_url} is pulling http://www.campforestsprings.org instead of http://www.oakforestcenter.org and screwing up the css paths.

  • #13 / Apr 02, 2011 5:35pm

    Greg Salt

    3988 posts

    Hi Jesse,

    Ah, yep, that’ll do it. If you hardcode the paths for test does that fix it?

    Cheers

    Greg

  • #14 / Apr 02, 2011 5:40pm

    jschutt

    452 posts

    Yes, that was it!

    I think I’ll check with the host on the subdirectory mapping issue as well.

    Let me clean all this up and I’ll open a new issue regarding the template profiling.  Thanks for your excellent help Greg.

  • #15 / Apr 02, 2011 5:45pm

    Greg Salt

    3988 posts

    Hi Jesse,

    Okay, glad that you got that figured out! I’ll close this thread as requested and we’ll await your new one about the profiler/template debugger.

    Cheers

    Greg

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

ExpressionEngine News!

#eecms, #events, #releases