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]
  • #16 / Jan 15, 2009 10:20am

    circa1977

    118 posts

    Sorry. Just found the answer in Chris Ediger’s post above. SSL solved.

  • #17 / Feb 09, 2009 3:29pm

    clefevre

    5 posts

    I wasn’t able to upload images on any other site but the main site, until I added a “/” at the end of this -

    <Directory "/var/www/vhosts/yourdomain.com/httpdocs/">
    php_admin_value open_basedir none
    php_admin_value safe_mode off
    </Directory>
  • #18 / Mar 05, 2009 8:10pm

    doubleplusgood

    199 posts

    I got this far; 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>

    But then, when I pressed esc, I didn’t get another prompt to enter wq. The above code remained in the terminal window and the cursor moved over the trailing >

    I’m using Terminal on OSX 10.5.6. Does anyone have any ideas what i’m doing wrong? :S

    Thank you.

  • #19 / Mar 06, 2009 9:37am

    Capt.Mike

    69 posts

    Hanabi,
    you could try downloading the vhost.conf file and editing it with a text editor then uploading it. Just backup a copy of the original to be safe.

  • #20 / Mar 06, 2009 10:49am

    Todd D.

    460 posts

    You might try a friendlier interface if the current ssh tool is not cutting it.

    I did a quick search for a good graphical ssh client that runs on a mac.

    I found this SSH/FTP/SFTP client here called RBrowser.

    In the feature list it appears it supports everything you will need to both create and edit the conf file.

    Since most Linux servers will not allow you to change that file unless you’re a super user… you will need to either login initially as the super user or login with your regular credentials and then change it after login. In a normal ssh client this is done with a su - command followed by a password prompt for the super user. I’m not sure how you would do this in RBrowser… but I’m sure it’s not too complicated.

    I have never used RBrowser… so I can’t personally vouch for the software but it appears it might do the trick.

  • #21 / Mar 17, 2009 3:52pm

    Deelicious

    86 posts

    Oh boy, I’m not having luck with this but I’m trying to stay optimistic!

    Do you have the second domain setup as a separate domain account in Plesk? So if you click on “Domains” both the main domain and second domain have their own account?

    I just wanted to make sure that the second domain isn’t supposed to be configured as an alias or something.

    Thanks!

  • #22 / Mar 17, 2009 4:05pm

    Todd D.

    460 posts

    Yes, I do have the domains separated. Not only do they have their own separate settings in Plesk… they also have their own IP addresses.  So they are truly separated from an outsiders perspective. Only within the server do they actually ‘see’ each other.

    Have you already setup your conf file?

  • #23 / Mar 17, 2009 4:21pm

    Deelicious

    86 posts

    Thanks for the help, Todd.

    I have both domains set up separately in Plesk, but under the same IP address.

    Right now my problem is that my new domain is still showing the default Media Template page, not the default EE index selected in the control panel of EE.

    As for configuring the config file…hmmmm

    When I installed the MSM onto a website already runnning EE, I created a new folder in my main domain’s httpdocs for the new domain and added the index.php and path.php files into this folder. Right now I don’t have a config file for the new domain, should I?

    This is my path.php file for the new domain:

    <?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/newsitedomain.com/httpdocs/system/";
    $site_name = 'new_site';
    
    // ------------------------------------------------------
    // 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
    
    ?>

    Thanks again.

  • #24 / Mar 17, 2009 4:34pm

    Todd D.

    460 posts

    Ok… we might be talking about two different things.

    First, I’m not sure I follow when you say the ‘default Media Template page’.  Do you mean the Plesk generated template when you create a new domain?

    If so, simply rename that file from index.html to something like index_original.html.  Then test to see what happens.  Even though you have the EE index.php in the root directory… the .html will override that. So we first need to handle that.

    Second, the conf file I’m referring to is the vhost.conf that nek4life first mentioned at the beginning of this forum thread. If you have yet to set that up… you will likely need to do so following his instructions in the second half of his post.

  • #25 / Mar 17, 2009 4:55pm

    Deelicious

    86 posts

    1. The Media Temple page was displaying on the second domain. I did login into the new domain account and change the default index.html to index_original.html, which has now changed the new domain to display the default Apache 2 test page. So that was good to know!

    2. Yes, the conf file is where it got murky. Bear with me as I describe what I did….

    As suggested I wrote to MT to ask for root access. They responded they wouldn’t provision this, so I turned on root access through the MT control panel for my server domain, which is not the domain I’m working with.

    But anywhoo..when I went to my second domain in Plesk, I noticed the SSH terminal was not available, but it is available in my server main domain so I begain working with the SSH terminal there. Should the SSH terminal be available in the account of the second domain?

    Ok, from there I started to enter the commands as net4life suggested in SSH terminal, but when I entered the first line as:

    -sh-3.2$ ssh .(JavaScript must be enabled to view this email address) I get the following:

    Could not create directory '/var/www/vhosts/myserverdomain.com/.ssh'.
    The authenticity of host 'XX.XX.XXX.XX (XX.XX.XXX.XX)' can't be established.
    RSA key fingerprint is XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX.
    Are you sure you want to continue connecting (yes/no)?

    Thanks for your patience!

  • #26 / Mar 17, 2009 5:04pm

    Todd D.

    460 posts

    Ok, I think I know what the problem is.

    Do you have a MediaTemple Dedicated Virtual server?

    The reason I ask is that DV accounts come with root access. If MT is saying they will not give you root access… I’m guessing you probably are using the grid service.  If your using the grid… I’m not sure you can get MSM to work with it.  Maybe… I’m just not sure.

  • #27 / Mar 17, 2009 5:06pm

    Deelicious

    86 posts

    Nope, I’m using MT DV 3.0….and yes I was confused when they gave that answer too.

  • #28 / Mar 17, 2009 5:43pm

    Deelicious

    86 posts

    Alright, I’m posting this to help other confused peeps too..

    I called Media Temple and they confirmed that I do have root access enabled and that I have done it correctly. Secondly, they walked me through how to allow access to the SSH terminal for a specific domain.

    Go to the domain > Setup > Account Preferences > Shell access to server with FTP user’s credentials (select /bin/bash)

    Once I’m in the SSH terminal, if I type in the first line

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

    I still get the error above.

    If I keep going and type in lines:

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

    it seems to go the next line without errors, until I type in:

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

    which gives the error:

    -bash: syntax error near unexpected token `newline'

    Hope that sparks an idea. Thanks!
    -Deanna

  • #29 / Mar 17, 2009 6:21pm

    Deelicious

    86 posts

    Didn’t realize, at least with my terminal, you’re not supposed to type in the $ and # symbols for each line. Big difference!

    I’ve now copied the Directory line information and have the same problem as Hanabi, when pressing ESC, nothing happens.

  • #30 / Apr 21, 2009 6:14pm

    Paramore

    40 posts

    *** Important Note ***

    If you’re having trouble with uploads (to the child domains’ file systems) on MT servers using MSM you need to make sure that the parent domain (the one running all the EE code) has the open_basedir turned off as well.

    So, for the parent domain do the same thing as was mentioned in the original post:

    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.

    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
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases