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.

MSM on MT (dv)

February 10, 2011 1:04pm

Subscribe [5]
  • #1 / Feb 10, 2011 1:04pm

    The Design Core

    359 posts

    Does anyone know if it is possible to setup MSM on Media Temple’s (dv) without needing root access?

    I found an old article on how to set things up but it requires root access.

    Any help is appreciated.

  • #2 / Feb 10, 2011 7:38pm

    The Design Core

    359 posts

    I tried to follow this “how-to” to get MSM running on Media Temple’s (dv) server but am running into issues. There must be some changes in 4.0.

    http://ellislab.com/forums/viewthread/70154/P0/


    When I type in the following from the “how-to”:

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

    I go the following error: WARNING: You are using obsoleted option, use corresponding option of httpdmng.


    So I tried:

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

    Which seemed to get me to the next step but it generated the following error: Unable to read options: Unknown command: “—reconfigure-vhost”

    Can any server gurus help me out here?

    Thanks.

  • #3 / Feb 10, 2011 7:39pm

    The Design Core

    359 posts

    Never mind. Going the root route but having troubles.

    See this post: http://ellislab.com/forums/viewthread/180845/

    Thanks.

  • #4 / Feb 10, 2011 10:29pm

    The Design Core

    359 posts

    So I think I figured out the new syntax and was able to create the vhost.conf file.

    I have verified that open_basedir has no value and safe_mode is off but I am still unable to get a second site working.

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

    My vhost.conf file contains the following:

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

    The path in the index.php file for domain2 is as follows:
    $system_path = ‘../httpdocs/engine’;

    The “engine” folder is my renamed system folder.

    In Plesk 10 on the new (dv)4.0 additional domains reside on the same level as the httpdocs folder.

    Any help is appreciated.

  • #5 / Feb 11, 2011 11:44am

    Ingmar

    29245 posts

    Please tell us a little more about your folder structure. Your main site lives within “httpdocs”? What about the secondary site? Have you made sure that this folder can be reached via the webserver, perhaps by placing a small test file there?

  • #6 / Feb 11, 2011 2:05pm

    The Design Core

    359 posts

    The main site where EE is installed is in httpdocs. The secondary site is in a folder on the same level as httpdocs.

    The second site is accessible. I have placed a test file in that directory and it does get served to the web.

    I have tried absolute and relative paths in index.php for the second site as follows:
    $system_path = ‘../httpdocs/engine’;
    $system_path = ‘/var/www/vhosts/myprimarydomain.com/httpdocs/engine’;

    I have tried with trailing slashes and without.

    I have also tried filling in all 3 assign_to_config variables as follows:
    $assign_to_config[‘site_name’] = ‘second_site_shortname’;
    $assign_to_config[‘cp_url’] = ‘http://www.myprimarydomain.com/engine/’;
    $assign_to_config[‘site_url’] = ‘http://www.myseconddomain.com/’;

    I have also tried just filling in the first one ($assign_to_config[‘site_name’] = ‘second_site_shortname’;) only per the MSM documentation.

    Everything seems to be working fine with EE & MSM on the primary site.

    When I view PHP Info, it shows open_basedir as having no value and safe_mode’s local value is off.

    The instructions in “how-to” post said to repeat the instructions for all domains. Maybe there is something wrong with my vhost.conf file.

    Does this look correct?

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

    BTW, this is a fresh install of the latest versions of EE & MSM.

  • #7 / Feb 11, 2011 3:24pm

    Sue Crocker

    26054 posts

    Hi, mediapimp. I’ve only ever messed with gs, not dv sites.

    Are you certain the system path for the main site is accurate?

  • #8 / Feb 11, 2011 4:01pm

    The Design Core

    359 posts

    I am fairly sure.

    If it’s not correct, I have no idea what it should be.

  • #9 / Feb 12, 2011 2:50am

    Gareth Milligan

    1 posts

    Although I do not run MSM I am on MT DV 4.0, domains should be in the httpdocs folder, you could setup up a sub domain on that site and then configure it to point at the sub domain folder as a test.

  • #10 / Feb 12, 2011 10:43am

    The Design Core

    359 posts

    Actually, that is untrue.

    This is from the MT knowledgebase:

    Document root folders are created in /var/www/vhosts/example.com/. httpdocs is created by default. Additional domain folders are on the same level as the httpdocs folder, and belong to the same user (the domain user you created when you created your subscription).

  • #11 / Feb 12, 2011 3:48pm

    The Design Core

    359 posts

    I tried it with a subdomain as well with no luck.

    It seems that in previous versions of the (dv), the directory structure was different.

    I spoke with another developer that has set up MSM on older versions of the (dv) and he said that all of his domains had their own httpdocs folder and their paths were /var/www/vhosts/thedomain.com/httpdocs.

    In the new (dv) 4.0 with Plesk 10, I only have one httpdocs folder for the primary domain. Other domains are created in folders on the same level as the primary site’s httpdocs folder and do not have their own httpdocs folders.

    This might be what is causing the problem but I have no idea what to do to fix the situation.

  • #12 / Feb 13, 2011 2:57pm

    The Design Core

    359 posts

    So I finally got it worked out!

    The new version of (dv) 4.0 with Plesk 10 has different paths than what are in the original “how-to”.

    So for anyone that tries this with (dv) 4.0, here is what I did:

    The new version of Plesk uses Subscriptions for multi-domain hosting. You create a subscription for your primary domain. The primary domain’s root is the httpdocs folder. Other additional domains that are added to the Subscription do not have their own httpdocs folder so using <Directory “/var/www/vhosts/myadditionaldomain.com/httpdocs”> in an additional domain’s vhost.conf file will not work.

    Additional domain root folders are on the same level as the primary domain’s httpdocs folder, so for the additional domain’s vhost.conf file, you would use <Directory “/var/www/vhosts/myprimarydomain.com/additional_domain_folder”>.

    Another mistake I was making, was since the additional domains did not have their own httpdocs folder, I thought that they did not have their own conf folders which is incorrect. I did not see the additional domain’s conf folders when I FTP’d to the server so I thought they did not exist. I was just looking in the wrong place and to access the conf folder, you have to ssh to the server.

    The additional domain’s conf folder resides at /var/www/vhosts/additionaldomain.com/conf/.

    Once I added the vhost.conf file in that location with the correct Directory path everything worked!

    Hope this helps someone working on the new (dv) 4.0 server.

  • #13 / Feb 14, 2011 3:50am

    John Henry Donovan

    12339 posts

    mediapimp,

    Glad you found a solution. Hopefully this thread may be of help for other users. Feel free to start a new thread if you have any more questions

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

ExpressionEngine News!

#eecms, #events, #releases