How-to setup the MSM on Mediatemple’s DV 3.0
Posted: 28 January 2008 10:20 PM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  63
Joined  09-22-2006

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 root@your.servers.ip.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

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!

 Signature 

Social: http://friendfeed.com/nek4life


EE Sites: Audible Hype, Brainsturbator

Profile
 
 
Posted: 12 February 2008 01:53 AM   [ Ignore ]   [ # 1 ]  
Grad Student
Rank
Total Posts:  43
Joined  12-19-2007

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

Profile
 
 
Posted: 29 February 2008 10:34 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  22
Joined  08-26-2007

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.

Profile
 
 
Posted: 13 March 2008 08:49 AM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  195
Joined  07-08-2007

Thanks! great tutorial.

saved me from pulling my hair out!

 Signature 
Profile
 
 
Posted: 11 April 2008 09:10 PM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  51
Joined  07-12-2007

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!

 Signature 

ExpressionEngine 1.6.2 - Build:  20080124

Profile
 
 
Posted: 02 June 2008 02:14 PM   [ Ignore ]   [ # 5 ]  
Summer Student
Avatar
Total Posts:  2
Joined  04-03-2006

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.

Profile
 
 
Posted: 07 July 2008 11:48 AM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  144
Joined  07-21-2006

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?

 Signature 

// matthanson.net
// twitter

Profile
 
 
Posted: 26 July 2008 08:03 PM   [ Ignore ]   [ # 7 ]  
Grad Student
Avatar
Rank
Total Posts:  54
Joined  02-14-2008

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.

Profile
 
 
Posted: 05 August 2008 10:03 PM   [ Ignore ]   [ # 8 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  168
Joined  12-08-2007

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.

 Signature 

For a list of all the ways technology has failed to improve the quality of life, please press three.

Profile
 
 
Posted: 18 August 2008 01:41 PM   [ Ignore ]   [ # 9 ]  
Summer Student
Total Posts:  30
Joined  02-24-2008

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.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64914 Total Logged-in Users: 25
Total Topics: 81869 Total Anonymous Users: 23
Total Replies: 440139 Total Guests: 158
Total Posts: 522008    
Members ( View Memberlist )
Newest Members:  smilepolitelyrvmcleodbjmohrAqua193Bios Elementmjpoteetguimogranwelshmrcfthenetmonkey