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.

Multi Site - Localhost

March 08, 2012 3:41pm

Subscribe [2]
  • #1 / Mar 08, 2012 3:41pm

    housingworks

    5 posts

    I have MSM working on my production server, but I need to make some edits to the templates etc and I want to set up a local development environment. 

    How do I set up Multi-Site to work on my localhost? 

    Multi Site Directory structure:

    C2EA/index.php
    C2EA/admin.php

    admin.php

    $system_path = '../system';
    $assign_to_config['site_name']  = 'C2EA';

    index.php

    $system_path = '../system';
    $assign_to_config['site_name']  = 'C2EA';
    $assign_to_config['cp_url'] = 'http://localhost:8888/C2EA/admin.php';

    When I browse to localhost:8888/C2EA, it seems to be pulling the right template. But as soon as I try to reach another template group within it

    (localhost:8888/C2EA/testing),

    I get served my default_site’s home page?  I am not sure what else I need to do to make this work.

    TIA

  • #2 / Mar 09, 2012 12:13pm

    Shane Eckert

    7174 posts

    Hello housingworks,

    Thank you for posting your question.

    It sounds like something is not right on your localhost.

    What environment is your localhost? Did your localhost meet all the requirements.

    Let me know what you find. We will go from there.

    Cheers,

  • #3 / Mar 09, 2012 4:05pm

    housingworks

    5 posts

    I’m using MAMP 1.9.6, and using the production database to pull the content.

    Expression Engine v2.2.2 - Build: date 20110801

    Thanks!

  • #4 / Mar 11, 2012 8:52am

    Sean C. Smith

    3818 posts

    Hi housingworks,

    Did you make a copy of the production database or are you connecting to the live site’s database?

    Sean

  • #5 / Mar 15, 2012 3:33pm

    housingworks

    5 posts

    I am connecting via the Production Database.

  • #6 / Mar 15, 2012 5:55pm

    Shane Eckert

    7174 posts

    Hello housingworks,

    Just to make sure that I understand. Can you clarify, are you using the same database for both sites?

    Thank you,

  • #7 / Mar 26, 2012 2:15pm

    housingworks

    5 posts

    Yes, I am using the same database for both sites.  I did not make a copy of the database at all.

  • #8 / Mar 27, 2012 8:06pm

    Sean C. Smith

    3818 posts

    Hi housingworks,

    You will need to make a copy of your database and copy that to your localhost. Running the live site and local site off the same database will result in the conflicts that you are experiencing.

    Sean

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

ExpressionEngine News!

#eecms, #events, #releases