A Screencast on How to Install the Aegir Hosting System
To celebrate the first release candidate of Aegir 0.2, I have put together the following exhaustively complete screencast guiding you through installing the Aegir hosting system.
This screencast was made by downloading an Ubuntu server vmware image from ThoughtPolice, and documenting the entire process of installing a fully working instance of Aegir hosting.
Because of the nature of the vmware image, this screencast literally starts from nothing and shows you everything that needed to be done to install aegir. Your mileage may vary, as your own VPS or server most likely already has things like openssh and sendmail installed. As this screencast is very text heavy, I have also included the complete transcript of all the commands used during the process.
All the configuration files that are included in this post are meant as examples only, and should not just be dropped onto your server. The video documents exactly how they were changed, and you need to follow the changes, not the final result.
Installing required packages
(
# basic server maintenance
sudo apt-get update;
sudo apt-get upgrade;
# Specific to this environment
sudo apt-get install openssh-server;
sudo apt-get install sendmail;
# Required components
sudo apt-get install wget cvs;
sudo apt-get install mysql-server mysql-client;
sudo apt-get install apache2;
sudo apt-get install php5 php5-cli php5-mysql;
# Only needed if you are not using a real domain
sudo apt-get install bind9;
)
Configuring bind
sudo vim /etc/bind/named.conf.local &&
sudo vim /etc/bind/db.vmdev &&
sudo /etc/init.d/bind9 restart
sudo vim /etc/resolv.conf &&
sudo vim /etc/dhcp3/dhclient.conf &&
sudo dhclient
ping random.vmdev
resulting files :
httpd.confConfiguring MySQL - Creating hostmaster database and account
(
mysqladmin -uroot -ppass create hostmaster
echo "GRANT ALL ON hostmaster.* TO 'hostmaster'@'localhost' IDENTIFIED BY 'password'" |
mysql -uroot -ppass hostmaster
)
Configuring PHP - Setting the memory limit
(
sudo vim /etc/php5/cli/php.ini
sudo vim /etc/php5/apache2/php.ini
sudo /etc/init.d/apache2 restart
)
Thanks to the wonderful Jonathan Coulton for the (cc licensed) intro music.
Adrian Rossouw is a senior developer at Development Seed who has spent years working on Drupal and the hosting system Aegir before turning to the dark side of server side JavaScript.
Follow Adrian Rossouw at twitter.com/adrianrossouw.