notes

Less than 5 Minute Aegir Slave Server on Amazon EC2 - Bash Script and Notes

I've started using Amazon EC2 with Aegir's multiple server setup and its sweeeet.  I can add a new server to my Aegir setup in like 2 minutes.

My bash script

Here is the script: http://pastebin.com/hHnTDtzs

I've tested this script with ami-3e02f257.   These are its specs:

  • Ubuntu 10.04
  • 32bit
  • EBS Store (allows this to be "micro" compatable and easy to backup/clone.)

I don't see why the script wouldn't work with x64... I just didn't test that.

What it does

You can read through the script and see all the commads that it does but here is a quick summary:

  • Runs apt-get update and upgrade
  • Installs everything you need plus git and nano
  • Forces php to be 5.2 rather than 5.3 using approach #3 here.
  • Does almost everything you need to do in the manual aegir install for using the server as an slave host.  Sets memory limits, comments bind-address, creates aegir user, creates aegir_root mysql user, etc...
  • Installs pecl uploadprogress
  • Installs Dru