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.

unclear on how to configure new site with MSM (ie Step 3)

January 02, 2012 11:17pm

Subscribe [4]
  • #1 / Jan 02, 2012 11:17pm

    Mutter

    5 posts

    EE 2.3.1
    EE_MSM_2.1.2
    rackspace cloud server

    So I’ve just installed MSM for the first time - everything was fine until
    http://ellislab.com/expressionengine/user-guide/cp/sites/createsite.html

    Step 3
    Configure your Site through the Control Panel like you would any ExpressionEngine installation, being sure to switch sites so that you are editing the settings for your new site. It is recommended that you start by updating the following:

    Admin > General Configuration: Update the System Preferences for the new Site. At a minimum, you will change the URL to the root directory and the URL to the Control Panel index page.

    I changed this and somehow crashed the whole system and had to restore the whole server <<—seems like there should be a big warning in the installation tutorial if you can crash EE by changing the General Configuration setting.

    So I want to change
    URL to the root directory of your site

    (but obviously don’t want to crash everything again)
    I’m not 100% sure what should go here because the domain name is already in use and I don’t want to redirect it until the new site is up and ready
    The layout on the server is as
    /var/www/vhosts/
    ├── system
    └── domain1.com
      ├── admin.php
      ├── index.php
      ├── images
      └── themes
    └── domain2.com
      ├── admin.php
      └── index.php
    so how do I point the new site to domain2.com ?
    I’ve already learned it’s not http://www.domain2.com/

    thanks!

  • #2 / Jan 03, 2012 12:39am

    LMO

    203 posts

    Hi there,

    I don’t know what happened but changing the URL path should not have crashed your server. It would only make EE think its at another location. The CP should still work as normal. There are some config file overrides you can use to override the database settings in case you can’t connect to change certain things, more info here http://eeinsider.com/articles/creating-a-robust-config.php-file/

    As for your question, are you having trouble creating the new domain in the EE control panel or getting the new domain to link correctly? Can you get to both domain folders without EE, Just using a ‘hello’ message of some sort?

    Also you may be able to still use the new domain name if its not currently on the same server by changing your host file to map the new domain to IP for development.

  • #3 / Jan 03, 2012 6:57pm

    Dan Decker

    7338 posts

    Hi Mutter,

    Welcome to the Forums!

    I’m sorry the MSM instructions are unclear, they could stand for a good update! As long as you have made the proper changes to your second site’s index.php and admin.php files, you should be set with that. For the changes in the Control Panel, you can change the “URL to the root directory of your site” setting to use IP address and directory path until you are ready to take the site live. For example:

    <a href="http://1.2.3.4/path/to/site/">http://1.2.3.4/path/to/site/</a>

    Just make sure that that is reflected in the second site’s index.php and admin.php files.

  • #4 / Jan 04, 2012 7:31am

    tlcheung

    23 posts

    Hi Dan
    I couldn’t use the IP address/path like that because I am on a rackspace cloud server so it’s set up like
    ├── system
    └── domain1.com
      ├── admin.php
      ├── index.php
      ├── images
      └── themes
    └── domain2.com
      ├── admin.php
      └── index.php
    not like
    ├── system
    └── domain1.com
      ├── admin.php
      ├── index.php
      ├── images
      └── themes
      └── domain2.com
            ├── admin.php
            └── index.php
    and I couldn’t use the domain name that it will eventually be because that is pointing to the old site and can’t be changed until this site is up and running
    I did get it to work (finally!) by using a cheap/temp domain name and using a redirect
    I’m just responding as an FYI just in case you (someone) does decide to update the installing directions - please put in warnings about crashing the ee installation during step 3 and please include direction for installing on a cloud server (it’s not hard if you know what to do but mind-boggling if you don’t have directions)
    thanks

  • #5 / Jan 05, 2012 3:17pm

    Dan Decker

    7338 posts

    Hi tlcheung,

    Did you post a response via a different account? I just want to make sure we aren’t leaving anyone out here.

    The User Guide for MSM can definitely use some clarification, thank you for your input! We are constantly working to make it better.

  • #6 / Jan 07, 2012 5:31pm

    tlcheung

    23 posts

    oh yeah that’s me I signed on on the work account but meant to sign on as me.
    thanks, tl

  • #7 / Jan 07, 2012 5:37pm

    tlcheung

    23 posts

    So I’m still having problems.
    I’ve got MSM installed and have the template for the index page - ok all of the works fine (links to the css file, image directory, etc) but when I try to make the 2ndary pages (called sections) I get the following error
    The requested URL /site/sections was not found on this server.
    I don’t know if this is still a problem with the configuration of MSM or if this is caused by the redirect (it seems like if the redirect is working it shouldn’t be a problem)

    what to do? please help.
    thanks

  • #8 / Jan 10, 2012 7:31pm

    Dan Decker

    7338 posts

    Hi tlcheung,

    Which site are you dealing with here? Site 1, Site 2? For that site, do you have a template group named “site” and in that group do you have a template named “sections”? You can find this by making sure you are logged into the Control Panel for the site in question, look to the top right of the Control Panel, you will see the site’s name there. If you need to change sites, you can do so by clicking the name and choosing the correct site from the dropdown. Then navigate to Design-> Templates-> Template Manager. What do you see in the list?

  • #9 / Jan 10, 2012 8:16pm

    tlcheung

    23 posts

    oh crap I just post a very long post about the problems I’m having with getting MSM to work correctly (I posted in a new thread because it is no longer about step 3) and no it’s gone.
    so here goes again….

    Hi Dan
    I’m only talking about Site 2 (Site 1 is up and working and isn’t being touched at the moment)

    I’m dealing with
    EEv2.3.1
    EE_MSM_2.1.1
    on Rackspace cloud hosting

    I had a lot of problems getting it installed (including having it crash all of EE)
    but finally got it installed and at least at first it seemed to be working correctly

    Here’s the new problem:
    the first template of the site (i.e. site/index) works fine (this includes embeds, css & and if statement)
    but none of the other templates will render
    I get a url error message for every other template
    now if I make any of those templates the template to the home page - they do work. They only stop working if there is any other homepage template.
    Note: because the installation is on a Rackspace cloud host site 2 (subdomain) is residing next to site 1(main domain) not inside it like many other hosts (not sure if that means anything but…)
    One more thing (I don’t know how to explain this) but if I do a link (for navigation for example) like a href=”/pages/resources” and you click on that, then click on another link - it doesn’t redirect you to the new link rather it keeps adding onto the url (like /pages/resources/otherthing) until it gives a too many sections error.
    very confusing

  • #10 / Jan 11, 2012 11:40am

    tlcheung

    23 posts

    just a quick question
    for Site2
    under general confirmation
    I have
    URL to the root directory of your site = domain2.com
    I didn’t change
    URL to your “themes” folder which still goes to
    http://www.domain1.com/themes/
    or
    Theme Folder Path which still goes to
    /var/www/vhosts/domain1.com/themes/
    there was no mention of this in the MSM installation guide (actually this is what I think crashed ee the first time I tried to install site2 with MSM)
    but if I copy the “themes” folder into site2 and link it accordingly - will this solve the problem I’ve been having?
    Again I’m on a rackspace cloud server and the subdomains live NEXT to not INSIDE the main domain
    thanks!

  • #11 / Jan 15, 2012 9:25am

    Sean C. Smith

    3818 posts

    ticheung,

    That should work. However you could also call rackspace and ask them to fix the openbase_dir restrictions so that site1 and site2 can communicate on the server. I’ve done this on rackspace and they are very helpful with this and most of the tech support staff there are aware of ExpressionEngine and MSM.

    Sean

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

ExpressionEngine News!

#eecms, #events, #releases