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.

Multiple Site Manager - Can't get started

August 13, 2012 9:20am

Subscribe [1]
  • #1 / Aug 13, 2012 9:20am

    AirWatch

    26 posts

    I just installed MSM and was able to clone content and templates etc on the backend - so that part is fine. It is the front end that I cannot get to work.

    Here is how I want it set up:
    public_html
    - Main site and all related directories etc
    - es: sub directory for Spanish version

    So the URL would be site.com - for the main site and site.com/es/ would be the Spanish site.

    Here is my config:
    I copied over the index and admin PHP files into the ES directory and updated the system path which is a level up from public_htm (../../system).

    The system/expressionengine/config/config.php file has these edits:

    // Espanol
    $system_path = '../../system';
    /*---------------------------*/
    $assign_to_config['site_name']  = 'es';
    $assign_to_config['cp_url'] = 'http://air-watch.local/es/admin.php';
    $assign_to_config['site_url'] = 'http://air-watch.local/es/';

    I am able to access the backend via http://air-watch.local/es/admin.php

    On the front end, when I go to http://air-watch.local/es/ I see the content but it is reading the main site templates (header.htm). I typed in {site_short_name} at the top so I can see it print out the name on the front end and in /es/ it displays default_site.

    It is for some reason not pointing to the /es/ for the templates.
    In the back end > Admin > General configuration the “URL to the root directory of your site” never gets update to http://air-watch.local/es/. I edit and save but it displays http://air-watch.local/

    What am I missing?

    Additional info:
    I am using a master.config which requires config.env (for local, DEV and prod environments) and.

  • #2 / Aug 14, 2012 4:12pm

    Dan Decker

    7338 posts

    Hi AirWatch,

    I can get you on the right track here. First thing to note, MSM does not require any edits to /system/expressionengine/config/config.php, so back those out.

    With that out of the way, here is a sample set up that outlines the basics of config.php and each site’s index.php and admin.php

    //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';

    Can you follow up after you check those?

    Thanks!

  • #3 / Aug 14, 2012 4:20pm

    AirWatch

    26 posts

    Hi Dan,
    Thanks for your reply. I got it sorted out seconds before you posted this. It was complicated because I am using the multiple environment config files as well.

    Also on a hunch I typed in index.php (sitename.com/es/index.php/url-title) and I was able t pull it up so I figured that I needed to remove the index.php for each site. Added an .htaccess inside the /es folder to remove the index.php from the URL and everything worked.

    So it looks like I am all set.
    Thanks!

  • #4 / Aug 15, 2012 2:28pm

    Dan Decker

    7338 posts

    Hey AirWatch!

    Glad to see you are all set!

    If you need anything else, just let us know!

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases