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]
  • #1 / Jan 29, 2008 12:20am

    nek4life

    32 posts

    Based on this article I was able to setup and configure the Multiple Site Manager on Mediatemple DV 3.0.  I’m not going to give a lot of background information about what exactly is going on here because quite frankly I don’t even really know what open_basedir and php safe_mode do in the first place.  However, this is what I did to turn them both off to get my MSM installation working on my DV.  So without further ado:

    To get started follow the Multiple Site Manager’s installation instructions until you reach the Setup Domains and Sub-domains page.

    After you have downloaded your index.php and path.php edit your path.php by entering the following

    <?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/yourdomain.com/httpdocs/system/";
    $site_name = "Site_Short_Name";
    
    // ------------------------------------------------------
    // 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
    ?>

    Once you’re finished editing your path.php upload both files to your new domain. 

    Next you will need to shut off open_basedir and php safe_mode.

    You’re going to need root access to your server.  Your DV doesn’t have root access enabled by default so your going to need to put in a support ticket and ask to have it turned on.

    At this point you will need to log into your server via ssh.  You can also log in with your terminal by using the following command.

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

    Once you’re logged into your server you’ll need to switch to the conf directory for the domain you wish to install your sites on.

    # cd /var/www/vhosts/yourdomain.com/conf/

    Next you will next you will need create and edit your vhost.conf file for your domain.

    # vi vhost.conf

    Press the letter i on your keyboard to insert your text.  Enter the following

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

    When you’re done editing press esc and then at the prompt (:) enter wq and then press return.

    Moderator’s note: This means you press, in that order, only those four keys: <ESC>:wq

    After exiting vi you’ll need to configure your server to read your new vhost.conf file on start up

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

    And finally you need to restart your apache web server

    # /etc/init.d/httpd restart

    That’s it, your server should be configured to run your new site.  If you’re going to set up another site with your MSM you will need to following these instructions again for each new domain.  Good luck!

  • #2 / Feb 12, 2008 3:53am

    Joakim_

    33 posts

    Thank you so much for this, you saved my day!

  • #3 / Mar 01, 2008 12:34am

    heatherkate

    20 posts

    This is a FABULOUS description of what to do.  It seems to have solved one problem.  Now on to the next!

    Thank you, thank you, thank you.

  • #4 / Mar 13, 2008 11:49am

    Philip Zaengle

    293 posts

    Thanks! great tutorial.

    saved me from pulling my hair out!

  • #5 / Apr 12, 2008 12:10am

    Andrew Munro

    51 posts

    Thanks so much! Just moved to DV server myself, and you saved me a lot of time when I couldn’t get the MSM working!

  • #6 / Jun 02, 2008 5:14pm

    bitebit

    1 posts

    If you want to get root access instantly and without write any ticket just login at ac.mediatemple.net and then choice under the “domains” menu the domain name that you use to admin your DV, the “root” domain for this DV.
    Then you will get one panel with some options in there, press “Root Access & Developer tools” and then:
    “Enable root access”, choice a password and you are ready to log with terminal: ssh root@ip or this domain.

  • #7 / Jul 07, 2008 2:48pm

    mattbrighton

    50 posts

    I have lighttpd set up on the dv server.

    It is working on the system domain with ‘open_basedir no value’ and ‘php_admin_value safe_mode off’.

    But on the second domain I’m getting no output now the path.php is set up correctly (before I was getting the standard path.php error message, so I believe the path is now correct).

    If anyone has had experience with msm on mediatemple dv with lighttpd can shed any light it would be most welcome?

  • #8 / Jul 26, 2008 11:03pm

    Chris Ediger

    46 posts

    First off - this post has saved my life on so many occasions! Thanks for sharing! I’ve actually got it saved as a PDF & I pull it out every time we go to set-up a new site via MSM.

    This has worked wonderful, until this weekend. We’re setting a secure site with SSL for event registrations. Tried & tried & tried & couldn’t get it to work. Finally after banging my head against the wall for two days, I finally figured out that you need to create an additional “vhost_ssl.conf” file just like the “vhost.conf” one (exact same input) if you’re pulling off a secure connection. This fixed it for me.

  • #9 / Aug 06, 2008 1:03am

    Todd D.

    460 posts

    nek4life - You should be awarded an oscar or a grammy or a medal of honor or something for this post. I can’t believe how much time I wasted with bad advice trying to get multi-site manager working on Plesk with different IP addresses.

    I can confirm that nek4life has posted THE SOLUTION to getting multi-site manager working on Plesk.

    Thanks a bunch!  I owe you, at the very least, a twelve pack of the beer of your choice.

  • #10 / Aug 18, 2008 4:41pm

    Super McFly

    90 posts

    The same goes if you are using subdomains too. You need to add the following to the vhost.conf file inside “/var/www/vhosts/yourdomain.com/subdomains/subdomain/conf”:

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

    I’m new to this so there is probably a more efficient way of doing it. It’s probably obvious to most people but this got me for about an hour.

  • #11 / Jan 09, 2009 3:28pm

    circa1977

    118 posts

    I have an interesting follow up to this (and this post worked great, thanks!).

    I have a Multiple Site Manager setup and I’m using SSL on both sites.

    On the primary site, I’ve set a rewrite rule in htaccess to redirect requests to https. That works fine as long as site_url contains https in path.php on the site.

    On the secondary site, regardless of whether I follow those two steps (which I have), I receive:

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

    When I try to access the URL using https://

    Settings for both sites (in Plesk), say “Use a single directory for housing SSL and non-SSL content”. I even added the httpsdocs path in vhost.conf despite the fact that that directory contains no EE files.

    Any thoughts? Again, only impacting the secondary site, when https is used to request a URL, and updating path.php in the secondary site doesn’t solve it (seems required that it match on the primary site).

    Everything works as it should without using https.

    Thanks,
    Mark

  • #12 / Jan 13, 2009 2:50pm

    circa1977

    118 posts

    Bump? Anyone set up SSL redirects on both MSM sites without system path error?

    Thanks,
    Mark

  • #13 / Jan 13, 2009 2:51pm

    circa1977

    118 posts

    Bump? Anyone set up SSL redirects on both MSM sites without system path error?

    Thanks,
    Mark

  • #14 / Jan 14, 2009 5:48pm

    Philip Zaengle

    293 posts

    So, this might be a little bit of a hack, but could you use the MSM to just set up a mirror site? drop the index file and the path file and set it all the exp:webolg calls to site=“root_site_name”? hehe, very much a hack.

  • #15 / Jan 14, 2009 5:54pm

    circa1977

    118 posts

    Thanks for the reply but it’s a high-security site (hence the SSL requirement) and we’re really close to launch. Need to work with the official MSM functionality and what’s in place.

    This is still open.

    Mark

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

ExpressionEngine News!

#eecms, #events, #releases