Multisite Drupal Hosting on MediaTemple
Firstly I must admit (mt) Media Temple may not be the best Drupal multihost if you are getting more than 1000 unique visits a day. Why? It gets expensive, I am already paying almost 6 times what I signed up for on the Grid Server service. First they forced me to upgrade to a mySQL container. This wasn't a big deal as we know Drupal is mySQL heavy and this would help performance. But it is the GPU's over usage that I keep blowing out and this is costing me enough to get a VPS rather than sit on the Grid.
Anyway here is how to do it in brief:
1: Create a new domain as part of your account through the mediatemple control panel. This will create a new domain folder in your /domains folder.
2: Delete the new folder it created in the /domains folder (scared? don't be. If your worried do what I do and rename it to something like 1mydomain.com so it is still there just not recognised.)
3: Create a symlink for that domain to the new domain that will be the multisite site.
Symlinking:
To do this you need to enable SSH access to your main (mt) Admin Account. This is the serveradmin@yourdomain.com one and you can add SSH to the user in the Grid Control Panel under : "server administrator"
Then use Terminal (OS X) or Coda (OS X) to connect (or what ever you prefer to use for SSH).
Once logged into terminal get into the domains folder. If you haven't renamed/deleted the domain folder do so now (NB NOT the site your using for the multisite).
This step is probably just type:
cd domains
I think...if you do:
ls
once in there it should list all the site folders you have
Now use this command for the symlink:
ln -s domainnamethatismultisite.com domainforthemultisite.com
The first domain is the multisite the second is the one you want to point at the multisite.
If you make a mistake you can use the command:
unlink mydomain.com
e.g If you accidentally make a typo and link/point mydomain.com to mimulitypo.com or similar you can type : unlink mydomain.com and this will undo the link. In your FTP account you will see the alias/shortcut name for the link to unlink so you don't have to guess.
DONT delete the shortcut in FTP as this could delete the main multisite account. Just use unlink
4: Now all you need to do is create your site in the sites folder of the multisite site. like www.mydomain.com
5: REMEMBER to edit the .htaccess file to allow both www and nonwww inbound requests. See the default Drupal .htaccess file for instructions on this.
Summary:
I am not a Terminal guru which is why I combine FTP and SSH to get the job done. But it works and it makes sense.
Any Questions? Did I miss something? Was this a crap guide?

i will give it a try. symlinking is a like daunting.
great write up on multi site drupal. i would be keen to hear if you move to another host and who.
nice one thanks
Post new comment