Advice on multisite setup wanted

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by tumbledown100 on March 22, 2012 at 6:34pm

I'd really appreciate any thoughts on the best way to set up a multisite installation.

I currently have a live Drupal 7 multisite with about 35 sites on it and it will shortly grow a lot bigger.

At the moment I am using shared hosting without shell access, and when modules/core need updating, I have to download each separate database using phpmyadmin, upload each one to my local xampp copy site, update each site manually and then re-upload each database to the live site. Obviously this is really time-consuming.

So I would really like some advice on the best way forward. So far I'm thinking of putting all the databases together in one big database, downloading it to xampp, updating all local sites using drush and then uploading again to the live site.

Is this a good idea?

Would it be better to use a VPS with shell access than shared hosting?

Would it be better to use one big database rather than 35+ individual ones?

Is there a better way that I haven't thought of?

Can you pay people to do this updating/admin stuff for you? What if they wrecked your site?

I'd really like to get this right now before it all becomes too big and unwieldy to make the necessary changes.

Can anyone help?

Thanks,

Mike

Comments

Same question here. I've been

Posted by Lakeside on March 22, 2012 at 6:49pm

Same question here. I've been waiting for Packt Publishing to release their Drush and Multisite books (due in April). Unfortunately, judging from experience they may not be released for months.

Here's hoping that someone provides a more timely answer.

Thanks

Posted by tumbledown100 on March 29, 2012 at 6:58am

Thanks for that - good tip. I didn't know those books were coming out and will pre-order some of them at least

Maybe consider Aegir / BOA

Posted by jamiet on March 22, 2012 at 8:28pm

I think you should seriously consider moving over to an Aegir / drush make / platform based approach.

If you want to manage the server end you would need to move to a VPS - if you do this I recommend looking at the Barracuda Script and companion Octopus Script as it makes setting up a secure high performance multi-Aegir server a lot easier. If you decide you do not want the overhead of managing the VPS then you could take a look at the service provided by the maintainers of the script over at http://www.omega8.cc.

HTH,

JamieT

Looks interesting

Posted by tumbledown100 on March 29, 2012 at 7:04am

This looks really interesting but I'll have to look into it some more as I don't completely understand it!

I'm based in the UK so the fact they seem to have a uk-based hosted service is good.

Thanks

Not sure why you cant update

Posted by wipeout_dude on March 22, 2012 at 9:20pm

Not sure why you cant update the sites on the shared hosting server directly without the whole database export/import/export/import routine..

Some shared hosts can give you ssh access which may be an option..

With 35+ Drupal sites there is a lot to be said for a VPS specifically configured to run Drupal..

Personally I don't believe Aegir is the way to do that but I haven't tried Omega8's aegir/nginx setup which may be better than I found the standard aegir/apache setup to be..

Drupal's multisite functionality can be put to VERY good use in this scenario and can be setup to make very efficient use of resources with a shared code base for both core and modules..

Yes, you can pay people to do this for you if you don't want to do it yourself..

So I guess the answer is there are LOTS of options available to you and how you structure you architecture and platform moving forward, you just have to work out what's best for you.. :)

Localhost

Posted by tumbledown100 on March 29, 2012 at 7:09am

It is just my habit to make changes/update site on a localhost copy and then upload when I've ironed out any potential problems. Also I'm learning how to use drush but have already learned how easy it is to make mistakes with pretty catastrophic consequences!

I'd be interested in knowing why you don't like Aegir.

Thanks for your help.

between current and VPS might help

Posted by eporama on March 22, 2012 at 9:54pm

If you have no SSH access on a shared hosting, there's very little chance that Aegir will be able to help.
You don't necessarily need to go to a full VPS to get a good multisite setup. The issues you mentioned are all separate questions that deserve individual responses

I would suggest against the one database to rule them all approach. Each site does well with an individual database and the size of a combined database will be problematic, especially if you want to only update a single site. You might look at the Backup and Migrate module. It is a fairly complete module for backing up individual sites. It's not the lightest module in terms of processing and efficiency, but it has a lot of benefits like AWS S3 integration.

There are many shared hosting providers that do have SSH access, so a change of hosting might be in order, but it might be something that you want to investigate.

There are hosts that will tune for Drupal and manage the rest of the stack. Acquia and HotDrupal are just two (at different $ and pros/cons).

The key if you want to be able to do it yourself is to have access to be able to use Drush on the server. Managing multisites with drush site aliases is much easier than trying to do it by hand. If you're pulling databases down, etc. being able to run "drush sql-sync" which does it all in one step will be quite worth it.

Hope some of that is helpful.

Backup and migrate

Posted by tumbledown100 on March 29, 2012 at 7:16am

I was only thinking of using one big database as I thought it would reduce the time spent up/downloading lots of individual ones.

I already use Backup and migrate - just to back up files and databases to Amazon. But I haven't used it to move (migrate) databases. Maybe I'm missing something but at a glance it doesn't look like that would be easier than the phpmyadmin method. Is it?

Unfortunately I'm UK-based so can't use Aquia or Hot Drupal as US-based servers would adversely affect seo (or so I'm told).

It does sound like the key to all this may be drush. I'm finding it a steep learning curve but will get there in the end, I guess.

Thanks for your advice.

Drush does the trick in Shell script

Posted by krausr on March 30, 2012 at 1:45pm

Something to consider if you have any command line access--or perhaps hosting service provides an alternative to run scripts. Don't think that VPS is necessary. Also would caution you about one big DB. Would need to know more details about your specific situation to say any more on your question.

What we do: we have about 30 sites under 4 separate Drupal instances (will soon have 50) and use drush commands in a shell script that cd's to a base Drupal install, does a main pm-update and then visits each site under that install, running updatedb. Drush can do DB backups as well. (Obviously we do this on devel first, check sites, then move to production. Don't even have to put sites in maintenance mode.) Man, my life just got easier! Note: Drush 5 now out has even more valuable commands.

Even if you have 30+ sites under a single instance, this should not be difficult to implement (and the script may take 30 sec- 1 min to run!). Will share details upon request.

Drush may have a bit of a learning curve initially, but the time it will save you in just a short while is well worth it.

Update

Posted by tumbledown100 on September 6, 2012 at 8:48am

Thanks to everyone for their input. Some months later, I think I've settled on a set up and thought I'd share it with you.

I initially took up Jamiet's suggestion and went to omega8.cc for their hosted Aegir solution. It was a bit of a learning curve but when I got the hang of it, I loved it. Their support was pretty good, too.

However, I found I could only host about four websites per their standard core (which is how they price things). I can't remember the cost per core but it was prohibitively expensive for me.

I talked things over with them and they suggested I get a VPS at Linode (allowing me to use Linode's UK servers) and use Omega8's paid installation service to install Aegir. I've now done that and couldn't be happier with the result. I've got 50+ sites and counting on the server, all running like lightning and easy to update.

As Omega8 set it up, they still offer support for the Aegir side of things which helped a lot as I was still working things out.

I still haven't got around to learning Drush but suspect that when I do it will make things even easier. However, just using ftp and the Aegir contrrol panel has transformed my working life - What a relief.

And no, I'm not on commission! Just thought it might help someone else in my position.

Glad to hear I helped a

Posted by jamiet on September 6, 2012 at 8:58am

Glad to hear I helped a little ;). Can I ask what size linode server you went for? I am currently on a different VPS but am not 100% with them and have always been attracted by linode as they have some interesting features etc.

TIA,

JamieT

Omega8's paid installation service to install Aegir.

Posted by Sunshiney on September 6, 2012 at 1:59pm

Care to share the cost? Do you have any reservations about not knowing how to handle problems, yourself, with "things" under the hood? I'm someone who likes to know the broad workings of my auto engine so I am not at the mercy of unscrupulous auto mechanics. Similarly I find that mastering an apache install was a steep learning process but once mastered, the mystery is gone and it's a comfortable feeling. Kinda like going from being fearful about knocking out and replacing drywall.... it's easy once you do it. But that's just me. Interested in hearing the pro's of your decision..

Check out their Aegir on Your

Posted by jamiet on September 6, 2012 at 3:41pm

Check out their Aegir on Your Server page: http://omega8.cc/remote

Jamie, I chose the 2048mb

Posted by tumbledown100 on September 7, 2012 at 7:47am

Jamie, I chose the 2048mb Linode at 80ドル a month and their backup for 20ドル a month. My plan, as far as it goes, is to keep loading sites onto it until it shows the first signs of creaking and then upgrade. If that is a bad idea, please let me know. I want to keep it as fast as possible for my customers.

Nwwoman, I also got the Omega8 quarterly subscription at 240ドル which helped me with any reservations I had about not knowing how to handle things under the hood as, hopefully, I can rely on their support if anything does go wrong.

I don't really know anything about the backend of Aegir but then I didn't know much about the backend of cpanel either.

I've still got a cpanel set-up on a shared server elsewhere and every time I go back to it now it feels like coming across an old Amstrad computer and remembering how we used to do it in the old days!

On Aegir with one click I can create a site, create a site on a sub-domain or clone a site - which is a particularly useful feature for me.

I always used to develop new sites on Xampp but now it is so much easier just to create a new site on a sub-domain on Aegir (one click) and then when I'm ready, migrate it to the live domain (one click (or is it two?)). No creating databases, no filling out the Drupal installation form - nothing.

Maybe you can do all this with Drush, but as I don't know how to use it, I don't know.

The whole Aegir/Linode set-up is about 4 times more expensive than my old set-up on a shared server but the sites are faster and it has revolutionised my site building. And there was no way I could carry on with the updating problem I had on the shared server anyway.

I still don't know how to pronouce Aegir though.

Hi - 2048 is pretty big

Posted by jamiet on September 9, 2012 at 3:15pm

Hi - 2048 is pretty big server so you should have plenty of room for growth. TBH I was looking at the 768 linode but I do not have anywhere near 50 sites at the moment. I was planning to do the same as you - load the site up and monitor performance, once the server starts struggling then I would upgrade the server - I believe linode makes upgrading relatively painless.

Glad to hear its working for you.

JamieT

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /