Drupal‎ > ‎Notes‎ > ‎

Aegir + EC2

Out of date notes on installing Drupal + Aegir on Amazon EC2 then creating an AMI. Assumes CentOS.

Aegir EC2 installation
  • adduser aegir
  • usermod -G apache aegir
  • groups aegir
  • mkdir -p /var/aegir/config/vhost.d
  • mkdir -p /var/aegir/backups
  • chmod -R 0700 /var/aegir/{config,backups}
  • chown -R aegir /var/aegir
  • su -s /bin/sh aegir
As the aegir user:
  • export DRUPAL_DIR=/var/aegir/drupal-6.13
  • export AEGIR_TAG=DRUPAL-6--0-3-RC4
  • cd /var/aegir
  • export CVSROOT=:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal
  • cvs co -d drush -rDRUPAL-6--2-0 contributions/modules/drush
  • cvs co -d .drush/provision -r$AEGIR_TAG contributions/modules/provision
  • $DRUSH dl drupal
  • cd $DRUPAL_DIR
  • cvs co -d profiles/hostmaster -r$AEGIR_TAG contributions/profiles/hostmaster
  • cvs co -d profiles/hostmaster/modules/hosting -r$AEGIR_TAG contributions/modules/hosting
  • $DRUSH dl --destination=./profiles/hostmaster/modules install_profile_api-6.x-2.1
  • cvs co -d profiles/hostmaster/themes/eldir -r$AEGIR_TAG contributions/themes/eldir
  • ec2-upload-bundle -b [BUCKET] -m /mnt/image.manifest.xml -a[REDACTED] -s [REDACTED]
  • mkdir sites/$AEGIR_DOMAIN
  • cp sites/default/default.settings.php sites/$AEGIR_DOMAIN/settings.php
  • chmod g+w sites/$AEGIR_DOMAIN/settings.php
  • mkdir sites/$AEGIR_DOMAIN/files
  • chmod 2770 sites/$AEGIR_DOMAIN/files
  • chgrp apache sites/$AEGIR_DOMAIN/{settings.php,files}