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.

Can't change URL for new site MSM

January 18, 2011 3:54pm

Subscribe [3]
  • #1 / Jan 18, 2011 3:54pm

    kellypacker

    138 posts

    Hopefully this is an easy fix. I just installed MSM (Version: 2.0 Build: 20101215) on a EE v2.1.3 build 20101220 site.

    When I create a new site and go to Admin -> General Config and change the ‘URL to the root directory of your site’ to:

    <a href="http://newsite.example.com">http://newsite.example.com</a>

    and then save it, it returns to the original site url (I’m developing on a subdomain):

    <a href="http://default.example.com">http://default.example.com</a>

    I presume this is because the config.php file is overwriting it with this:

    $config['site_url'] = "http://default.example.com/";

    Which is what is should be, but it seem like it’s overriding the MSM.
    config.php is set to 666.

    I’ve configured the index.php files, but it seems like they don’t matter yet because the config.php is controlling the url.

    I feel like I’m in a catch 22 here. Any ideas?

  • #2 / Jan 19, 2011 9:13am

    Sue Crocker

    26054 posts

    Hi, Kelly.

    On my MSM installs, my config.php doesn’t have a

    $config['site_url']

    setting.

    But the index.php file for each additional site does.

    Can you make sure you have that setting set in the index.php file in your secondary site?

    You might also want to place two // before the setting in your config.php file to see if that is the issue.

    Does that help?

  • #3 / Jan 19, 2011 11:54am

    kellypacker

    138 posts

    Hi Sue, thanks for the reply. It sounds reasonable when you say it like that 😊 That fixed that. I had beefed up my config.php and it was giving me errors when I deleted that site_url in the config, but I modified some other config parameters in there and it worked. I am able to modify the site_url in the cp.

    So in my index.php of my new subdomain, I modified the $system_path to be the full server path to the system folder. And I get:

    Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php

    Do you think this is due to open_basedir restrictions? I turned them off (I thought), but maybe I didn’t quite do it correctly. Or is there something else it could be? Is there another setting I am missing?

    I have these set in the subdomain index.php:

    $assign_to_config['site_name'] = 'site2';
    $assign_to_config['site_url'] = 'http://site2.example.com';
  • #4 / Jan 20, 2011 4:08am

    Ingmar

    29245 posts

    I modified the $system_path to be the full server path to the system folder.

    This should be a relative path from the current directory (in which the index.php file resides) to your site’s system directory. See the docs for details.

  • #5 / Jan 20, 2011 11:12am

    kellypacker

    138 posts

    Yes I should have mentioned I tried setting it to a relative link as well.

  • #6 / Jan 20, 2011 5:43pm

    Sue Crocker

    26054 posts

    Is your system folder above the web root? Are you sure your system path is correct? I usually create a whereami.php file to get the right value. See: Where Am I?

  • #7 / Jan 20, 2011 5:54pm

    kellypacker

    138 posts

    My system folder is in the site root. The system path is correct, it’s our DV so I know it pretty well.

  • #8 / Jan 21, 2011 10:48am

    Ingmar

    29245 posts

    So what error are you getting exactly, where? The other site is working fine? Are you using mod_rewrite in any way?

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

ExpressionEngine News!

#eecms, #events, #releases