Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSM Example #12

Open
angieherrera opened this issue May 12, 2012 · 10 comments
Open

MSM Example #12

angieherrera opened this issue May 12, 2012 · 10 comments

Comments

@angieherrera
Copy link

Hey Erik,

This isn't so much an issue as a (hopefully) small request. I've been using this for several sites, but I'm getting ready to use it for a site that uses MSM. I'm not 100% sure how to go about doing that and would love to see an example when you get a chance.

Thanks!
.angie

@amccullough
Copy link

I second this. My second site just brings up the default site. If anyone has gotten this to work, I'd love to hear...

@rlargett
Copy link

I would love to see this set up for MSM as well

@gwincr11
Copy link

gwincr11 commented Jul 1, 2012

I would also like this to be available, as well as an explanation of how a load balanced environment may affect the setup.

@cgwin
Copy link

cgwin commented Jul 3, 2012

I too would like to see this.

@alexball
Copy link

Anybody had any luck with this?

@erikreagan
Copy link
Member

@alexball I replied to your email a couple of days ago. Can you confirm that you received it?

@jesseschutt
Copy link

Anyone here willing to share what you did to get this working with MSM?

@erikreagan
Copy link
Member

Jesse,

The easiest way to setup msm with this config is to keep each site's "public" directory at the same level. So your mail site' "public_html" (or equivalent) would be a directory sibling to your other sites' similar directory.

/config
/public_html (main site)
       /index.php
       /admin.php
/site_two
       /index.php
/site_three
       /index.php
/system

@jesseschutt
Copy link

Erik - Thanks for the clarification. This makes sense to me. Not much would have to change in the config to make this happen since the system folder would be the same amount of levels above the admin.php and index.php of each site. My current structure is as follows:

/config
/public_html (main site)
   /index.php
   /admin.php
   /second_site
      /index.php
      /admin.php
/system

So the problem is that the paths from database.php and config.php aren't working since they are being called relatively, from different folder depths.

I've asked my host if the structure that you've proposed is doable! Hopefully that will solve this. Thank you for taking a few minutes to point me in the right direction!

@ipixel
Copy link

ipixel commented Jan 4, 2013

I have a couple of sites coming up where I need to use the config with MSM and the sites are hosted across multiple cPanel accounts under a client's VPS (Virtual Private Server) running cPanel's WHM (Web Host Manager). This means that it's setup more like this:

/home/default_site
    /_templates
        /default_site
    /config
    /public_html
        index.php
        admin.php
    /system
    /third_party
/home/site2
    /_templates
        /site2
    /public_html
        index.php
        admin.php
/home/site3
    /_templates
        /site3
    /public_html
        index.php
        admin.php

Each site would also have its own templates directory, which may or may not work in this case. If there's any pointers or anyone else has managed to get around this type of setup, assistance would be greatly appreciated.

Cheers
Brendan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants