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.

Getting MSM to work?

September 23, 2009 7:19pm

Subscribe [2]
  • #1 / Sep 23, 2009 7:19pm

    devilslayer

    27 posts

    Hello, I hope somebody can help me out with this as it is probably quite simple.

    I have Expression Engine installed with MSM.

    I have a site with 2 sub-domains

    http://www.mysite.com
    subdomain1.mysite.com
    subdomain2.mysite.com

    I have created the sub-domains in CPanel and can access the live websites if I place an index.html file in the root of each sub-domain directory.  Therefore I know the sub domains are working, as they are serving web pages.

    I have added the path.php and index.php files to each sub-domain folder. See example below:

    <?php
    
    // ------------------------------------------------------
    // DO NOT ALTER THIS FILE UNLESS YOU HAVE A REASON TO
    
    // ------------------------------------------------------
    // Path to the directory containing your backend files
    
    $system_path = "../system/";
    
    // ------------------------------------------------------
    // MANUALLY CONFIGURABLE VARIABLES
    // See user guide for more information
    // ------------------------------------------------------
    
    $template_group = "";
    $short_name = "subDomianShortName";
    $template = "";
    $site_url = "http://subdomain1.mysite.com/";
    $site_index = "";
    $site_404 = "";
    $global_vars = array(); // This array must be associative
    
    ?>


    I have gone into the sytem preferences in the control panel for the subdomain and set the following:

    URL to the root directory of your site
    http://subdomain1.mysite.com/

    I can view the Rendered Template when I click the [View Rendered Template] button in the Control Panel, for the default site. However when I try it for the sites using sub-domains I get the following message:

    To proceed to the URL you have requested, click the link below:
    <a href="http://subdomain1.mysite.com/templates_group/">http://subdomain1.mysite.com/templates_group/</a>

    When I click the link I get a HTTP 404

    If I go to the live URL for the sub-domains I just get a blank page.

    Can anybody see what I am missing?

  • #2 / Sep 23, 2009 7:45pm

    devilslayer

    27 posts

    PROBLEM SOLVED FOR NOW

    I have a .htaccess file in my main site root, which removes index.php from the URL.

    I placed a copy of this .htaccess file in each of my sub domains and they seem to be working.

  • #3 / Sep 23, 2009 7:45pm

    Greg Aker

    6022 posts

    are you sure your system path is indeed correct?

    -greg

  • #4 / Sep 23, 2009 7:55pm

    Greg Aker

    6022 posts

    I’m glad you got it figured out.

    Also, in your path.php file, you should have:

    $site_name = "subDomianShortName";

    Not “$short_name”

    =greg

  • #5 / Sep 24, 2009 5:25am

    devilslayer

    27 posts

    Doh, thanks for that Greg. I have now changed the setting in my path.php files.

  • #6 / Sep 24, 2009 6:11am

    John Henry Donovan

    12339 posts

    Glad Greg was able to help. 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