Self hosting the Drupal web content management system with Aegir

Serious Drupal hosting SaaS such as Pantheon starts at 25$USD per site, Acquia is something like 100$+ per site.

With the FLOSS Aegir Hosting System this cost per site can be greatly reduced. Of course total cost of ownership may still be high, when technical ability and Linux admin time are factored in.

Let’s self-hosted Aegir on an LXD/LXC container and migrate off an OVH VPS using Aegir’s built-in Remote Import feature.

I’ve worked with Ansible for Aegir in the past and there are a few Ansible roles and example playbooks on github.

As far as I can tell, none are official, so, I’ll use the Debian packages on Ubuntu Trusty 14.04 with Php5 from the official docs.

Php7 on Xenial is reportedly twice as fast and is supported, but I had errors and had no time to work through the issues.

UPDATE: I did actually get Aegir 3.9 with PHP7 on Ubuntu 16.04, but not without issues, I would say there are still issues



vi /etc/hosts aegir-server localhost aegir-server aegir-server
::1 aegir-server ip6-localhost ip6-loopback

lets do an update and upgrade

sudo apt update && sudo apt upgrade

I also add the server to Debops inventory. I want unattended upgrades of Ubuntu security releases and firewall via ferm etc.

install Postfix, choose Internet site

sudo apt install postfix


add the Debian official repositories

echo "deb stable main" | sudo tee -a /etc/apt/sources.list.d/aegir-stable.list


add the archive key to the servers keyring

wget -q -O- | sudo apt-key add - sudo apt-get update


install the Aegir 3 package

sudo apt install aegir3


the installation proceeds and you need to manually enter a mysql password (make it secure, record it in an encrypted password manager and avoid special characters)

verify URL of hostmaster frontend

re-enter mysql password

Aegir is installed and offers a login link, change username and password and email.

More parts to follow

Use sed to remove an old known_host

When doing system and network administration on Linux (aka DevOps) its common to make an IP change to the server you are working on and get a known_host man in the middle kind of warning.

ssh [email protected]
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
Please contact your system administrator.
Add correct host key in /home/devekko/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/devekko/.ssh/known_hosts:34
remove with:
Host key verification failed.


An easy way to remove a bad known_hosts line on say line x

sed -i 'xd' ~/.ssh/known_hosts

Hello new world

It’s almost 2017 and I feel like this is a new world.

We are launching a new business and tech will be one of our business lines (along with farm and sustainability).

I love free libre open source software (FLOSS) and have done some activism in this area, I also use it daily and I wanted to record the very, very many explorations I make in this space.

I have been inspired in this by sites like DailyDrip, TuxDiary and PacketPushers.

They do a great job publishing quality information and I learn a lot from them. I want to do the same. They are independent, self-publishers and this is why I love the internet.

I feel compelled, probably unwisely, to comment on the recent US general election. I am not a citizen and can’t vote, but I predicted a Trump victory, and was surprised by how close the presidential election was and also the wide sweep of wins in nearly every political office i.e. governorships, both chambers etc.

I imagine we will see 8 years of Trump and possibly a long term change in the political system and possibly a GOP ascendancy.

This will have an effect on our lives and our businesses and institutions. I’ll be doing research and unpacking this as the year unfolds.

On a technical level, I have become extremely interested in the Rails inspired Elixir / Phoenix web application framework.

I am working  a Phoenix website and an Elixir / Phoenix utility library now. For development purposes, Elixir and Phoenix are my main focus. But I have ideas integrating WordPress / Drupal into some of these projects.

Another area I want to develop is a consultancy business around project management and development of new products. Also big data analysis and systems integration.

I am open to contracts now, contact me at [email protected]