Quick Start Installation (Ubuntu 11.04+)

Tagged:

Here are simplified instructions for installing Aegir on a server, quickly and easily.

The fastest way to install Aegir is on the latest Ubuntu Server LTS Release (Long Term Support). This release always begins with the year it was released and ends with ".04". Currently 11.04

This document was originally based on http://community.aegirproject.org/installing/debian but has been trimmed down to list only the steps you need to get Aegir up and running.

Installation Instructions

  1. Fire up a new server

    • Use Ubuntu 11.04 Server Edition for the smoothest and most reliable installation experience.
    • Make sure it has at least 1024MB, preferably 2048MB of memory. Depending on your host you will have to configure a hostname. It can be convenient to call this 'aegir'.
    • If you want the smoothest installation, create a brand new server. There will be the least chance of conflicts if you start with a brand new Ubuntu 11.04 server. If you use Ubuntu Desktop, you should be able follow these instructions without any problems.
  2. Add the project repositories and archive key

    Use this command to add the Aegir package "Software Source" repository to your system:

    echo "deb http://debian.aegirproject.org stable main" | tee -a /etc/apt/sources.list.d/aegir-stable.list
    Use this command to add the archive key to your keyring:
    wget -q http://debian.aegirproject.org/key.asc -O- | apt-key add -
    Then, finally, update your apt repositories:
    apt-get update

  3. Install configure Aegir and dependencies

    Once you have added the repositories, you can now fire off the standard debian installation command:

    apt-get install aegir

This fires off the installation script for AEgir, along all dependencies including Apache, MySQ and PHP.

  • You will be asked to create a MySQL root user password. Make this long and random and write it down somewhere safe, you won't need it very often.
  • In Postfix Configuration: Choose Internet Site, unless you have a reason otherwise. When asked for the System mail name, pick either the hostname (default) or the domain name you will be hosting this server on.
  • In Configure aegir-hostmaster, you will be asked to choose a "URL of the hostmaster frontend". This should be either the hostname (default) or the domain name the server will be hosting, with "aegir" as a subdomain. For example, "aegir.example.com". You may want to change this to whatever you prefer, just don't forget it as it will be where you use the Aegir front-end.
  • After entering your domain, Aegir Hostmaster installation will ask you for the MySQL root password you created earlier. You did write it down, didn't you?
    NOTE: The current DEB package requires you to enter the MySQL root password twice.

When this script is done, if everything went ok, you should see this:

The following settings will be used:
Aegir frontend URL: test
Master server FQDN: test
Aegir root: /var/aegir
Aegir user: aegir
Web group: www-data
Web server: apache
Aegir DB host: localhost
Aegir DB user: root
Aegir DB password: <previously set>
Drush make version: 6.x-2.3
Aegir version: 6.x-1.6
Aegir platform path: /var/aegir/hostmaster-6.x-1.6
Aegir makefile: /usr/share/drush/commands/provision/aegir.make
Admin email: aegir@test

Do you really want to proceed with the install (y/n): y
Initializing the hosting system
This command will replace your crontab for this user. continue? (y/n): y
/usr/share/drush/drush.php '@hostmaster' hosting-dispatch
************************************************************************



Aegir is now installed. You can visit it at http://test/user/reset/1/1329504351/eda205d9a27abde400a27cf160dff69a
***...
frontend bootstrap correctly, operation was a success!
Setting up aegir (1.6-1) ...
Setting up libhtml-template-perl (2.9-2) ...
Setting up mysql-server (5.1.54-1ubuntu4) ...
Setting up php5 (5.3.5-1ubuntu7.7) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
root@test:~#

Work in Progress...