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.

How-to setup the MSM on Mediatemple's DV 3.0

January 29, 2008 12:20am

Subscribe [27]
  • #31 / May 26, 2009 11:36pm

    mrwarren

    31 posts

    It’s worth mentioning you have to do all this for each domain AND subdomain to get it working. That threw me off at first (and the paths were a little different for where the domain is located for subdomains) but in the end worked great! Thanks for this!

  • #32 / Sep 10, 2009 10:47pm

    Polaris Media

    7 posts

    One minor addition to this extremely helpful thread…

    My path read:
    $system_path = “/var/www/vhosts/yourdomain.com/httpdocs/eecp/”;
    instead of:
    $system_path = “/var/www/vhosts/yourdomain.com/httpdocs/system/”;

    I’m not sure if this is because the dev who installed EE named the folder as eecp or because it’s an older version or what… but clearly (for those who this may potentially help) the paths in the path.php files for the respective dependent domains need to reference whatever folder EE is installed in.

    FWIW

    Thanks for the help all.

  • #33 / Oct 27, 2009 4:14pm

    Todd D.

    460 posts

    One minor addition to this extremely helpful thread…

    My path read:
    $system_path = “/var/www/vhosts/yourdomain.com/httpdocs/eecp/”;
    instead of:
    $system_path = “/var/www/vhosts/yourdomain.com/httpdocs/system/”;

    I’m not sure if this is because the dev who installed EE named the folder as eecp or because it’s an older version or what…

    It’s recommended to change the default ‘system’ directory name to something that is not easy to guess for security reasons. Your developer did the right thing by changing the name. Once changed… its best to not let others know what the new name is.  😉

    See the installation instructions step 2 here.

  • #34 / Nov 02, 2009 8:07am

    Luke Hardiman

    109 posts

    @Hanabi The characters to type to save and exit your file are colon followed by w and q - like this :wq

  • #35 / Nov 17, 2009 10:17am

    Austin Siewert

    129 posts

    I’m having issues getting this to work on my domain with the classic method (http://expressionengine.com/wiki/Running_Multiple_Domains_or_Subdomains_or_Subsites/). Getting this error:

    The system path does not appear to be set correctly. Please open your path.php file and correct the path.

    I have followed the above article and this thread and can’t seem to figure it out. Here are my following settings:

    /var/www/vhosts/domain.com/subdomains/subdomain/httpdocs/path.php:

    <?php
    
    // ------------------------------------------------------
    // DO NOT ALTER THIS FILE UNLESS YOU HAVE A REASON TO
    
    // ------------------------------------------------------
    // Path to the directory containing your backend files
    
    $system_path = "/var/www/vhosts/domain.com/httpdocs/system/";
    
    // ------------------------------------------------------
    // MANUALLY CONFIGURABLE VARIABLES
    // See user guide for more information
    // ------------------------------------------------------
    
    $template_group = "repo";
    $template = "index";
    $site_url = "http://repo.domain.com/";
    $site_index = "index.php";
    $site_404 = "404/index";
    $global_vars = array(); // This array must be associative
    
    ?>

    /var/www/vhosts/domain.com/conf/vhost.conf:

    <Directory "/var/www/vhosts/domain.com/httpdocs/">
    php_admin_value open_basedir none
    php_admin_value safe_mode off
    </Directory>
    
    <Directory "/var/www/vhosts/domain.com/subdomains/repo/httpdocs/">
    php_admin_value open_basedir none
    php_admin_value safe_mode off
    </Directory>

    Thanks for the help!

  • #36 / Nov 19, 2009 12:12pm

    Austin Siewert

    129 posts

    The folks at (mt) helped me on this one and got it working. I thought I would post this for future reference. Keep in mind this is for DV 3.5, which probably still applies to 3.0.

    Need to configure the vhost.conf file on the subdomain/conf/ too

    The cause for the issue was due to a PHP parameter open_basedir which restricts the subdomain to only have access to the httpdocs folder.

    I set open_basedir to none within a file called vhost.conf located in

    /var/www/vhosts/domain.com/subdomains/subdomain/conf/

    and then ran

    /usr/local/psa/admin/sbin/websrvmng—reconfigure-vhost—vhost-name=subdomain.domain.com

    For more information regarding open_basedir visit

    http://kb.mediatemple.net/questions/514/

  • #37 / Nov 20, 2009 4:43pm

    jerm

    12 posts

    This worked great for me too but now I have an issue.

    I created a second site with MSM on Mediatemple’s DV 3.0 with a unique IP. The index, or home page, is working fine and I can view it at the IP address. I am using the IP for testing and do not have the domain pointed there yet. When I try to view a sub-template I am getting 404 errors. I found this article that describes my problem but the solution does not work. My main site that has my installation of MSM is working fine - all the templates/sub-folders on that site work too.

    I can create a new sub-folder with a static html file on my new site and I can view it in the browser (00.00.000.000/something) even though I have EE installed. It’s as if my request is not going through the index.php file like it should.

    Am I missing something?
    Anybody else have this issue? Thanks.

  • #38 / Nov 20, 2009 5:35pm

    Todd D.

    460 posts

    This worked great for me too but now I have an issue.

    I created a second site with MSM on Mediatemple’s DV 3.0 with a unique IP. The index, or home page, is working fine and I can view it at the IP address. I am using the IP for testing and do not have the domain pointed there yet. When I try to view a sub-template I am getting 404 errors. I found this article that describes my problem but the solution does not work. My main site that has my installation of MSM is working fine - all the templates/sub-folders on that site work too.

    I can create a new sub-folder with a static html file on my new site and I can view it in the browser (00.00.000.000/something) even though I have EE installed. It’s as if my request is not going through the index.php file like it should.

    Am I missing something?
    Anybody else have this issue? Thanks.

    To assist in troubleshooting…

    You might try adding the domain name to the hosts file which will bypass dns servers.

    Then you can test at the real domain name and, at least, eliminate any issues that are occurring because you’re using an ip address.

    Help with hosts file modify can be found here.

    Once you’re done testing and ready to launch site… don’t forget to change your hosts file back.

  • #39 / Nov 23, 2009 1:40pm

    jerm

    12 posts

    Thanks Todd.

    ‘Twas a Stupid mistake on my part - The problem was that I was forgetting to add index.php in my url string (00.00.000.000/index.php/something) - I have a .htaccess on my mainsite but not the new site.

    Also I had changed the $qtype variable in the main index file to ‘2’ and so ‘/index.php/’ needed to be ‘/index.php?/’ - anywho I changed $qtype back to 0 and added a new .htaccess file and it’s working now.

    (Testing a site using only an ipaddress is pretty much the same. The only thing you need to do is give the ip address a default url in Plesk and then that ip will show the site whether you have the url pointed to the name server or not.)

    Thanks again.

  • #40 / Jan 06, 2010 5:39pm

    Todd D.

    460 posts

    Glad you got it working!

  • #41 / Jan 21, 2010 4:28pm

    davidrussell

    102 posts

    Confirmed to work with EE 2.0 PB and MSM.

    Thank you very much!

  • #42 / Feb 11, 2010 2:04pm

    highlands

    13 posts

    I was adding another subdomain today and got hung up for quite awhile on one issue. You might note that if you add another subdomain, you should reconfigure the vhost of the subdomain and also the root domain. So:

    /usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=subdomain.domain.com

    and then:

    /usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=domain.com

    Then restart the server:

    /etc/init.d/httpd restart

    I poured through this thread several times looking for other tweaks that people have posted and while this might have been a common sense thing for some, it wasn’t common sense for me. 😊 Hope it helps.

  • #43 / Feb 19, 2010 2:34am

    Todd D.

    460 posts

    One other note that I might add to this thread. If you’re using https and calling files from the same directory that http calls from, you should also add a vhost_ssl.conf to the conf directory following the exact same procedure outlined earlier in this thread.

    Add the exact same lines in vhost_ssl.conf.

    <Directory "/var/www/vhosts/yourdomain.com/httpdocs">
    php_admin_value open_basedir none
    php_admin_value safe_mode off
    </Directory>

    After doing so…

    /usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=domain.com

    and restart apache

    /etc/init.d/httpd restart

    We ran into a problem trying to upload files while logged into the CP through https. Adding the vhost_ssl.conf fixed that issue for us.

  • #44 / Mar 29, 2010 9:44pm

    Gregory Maher

    25 posts

    I’m having a bit of an issue getting this to work properly.

    On a Mediatemple DV 3.0 server I have the following setup:

    Site 1: testsite.com
    EE and MSM installed at: testsite.com/system/

    vhosts.conf contains:

    <Directory "/var/www/vhosts/testsite.com/httpdocs">
    php_admin_value open_basedir none
    php_admin_value safe_mode off
    </Directory>

    Seems to be working great.


    Site 2: new.othersite.com
    path.php contains:

    <?php
    // ------------------------------------------------------
    // DO NOT ALTER THIS FILE UNLESS YOU HAVE A REASON TO
    
    // ------------------------------------------------------
    // Path to the directory containing your backend files
    
    $system_path = "/var/www/vhosts/testsite.com/httpdocs/system/";
    $site_name = "newsite";
    
    // ------------------------------------------------------
    // MANUALLY CONFIGURABLE VARIABLES
    // See user guide for more information
    // ------------------------------------------------------
    
    $template_group = "";
    $template = "";
    $site_url = "";
    $site_index = "";
    $site_404 = "";
    $global_vars = array(); // This array must be associative
    ?>

    vhosts.conf contains:

    <Directory "/var/www/vhosts/othersite.com/subdomains/new/httpdocs">
    php_admin_value open_basedir none
    php_admin_value safe_mode off
    </Directory>

    Site 2 Displays:

    The system path does not appear to be set correctly. Please open your path.php file and correct the path.

    I’ve gone through this post a few times. I’m fairly handy with the terminal and was able to properly use the websrvmng command and restart apache.

    Can anyone provide any insight? Is it because I’m going straight to a subdomain with Site 2? All of the posts above seem to suggest that the second site is within the same domain as the first site. Is there a “more global” vhosts.conf that can be set?

    Any help is greatly appreciated!

  • #45 / Mar 31, 2010 3:10pm

    Gregory Maher

    25 posts

    Hi again all,
    I just wanted to check in on my above post re: cross-domain access with MSM on Mediatemple DV 3.0. If I can’t get this figured out, I may use two EE installs for the time being. And, if I do that, how hard will it be to migrate the second site into MSM in the future?

    Thanks!

    Greg

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

ExpressionEngine News!

#eecms, #events, #releases