installing boa on ubuntu 12.04 lts

23
Author: Hector Iribarne @hectoriribarne Installing BOA 2.0.8 (Barracuda Octopus Aegir) on Ubuntu 12.04 LTS public VPS April 24, 2013

Upload: hector-iribarne

Post on 12-May-2015

1.171 views

Category:

Technology


2 download

DESCRIPTION

How to install BOA on a VPS to manage Drupal sites.

TRANSCRIPT

Page 1: Installing BOA on Ubuntu 12.04 LTS

Author: Hector Iribarne @hectoriribarne

Installing BOA 2.0.8 (Barracuda Octopus Aegir) on Ubuntu 12.04 LTS public VPS

April 24, 2013

Page 2: Installing BOA on Ubuntu 12.04 LTS

• We have been discussing different ways of installing and/or managing Drupal since July 2011:• Step-by-step installation guide for Aegir 1.2 on clean Ubuntu 10.04

http://browarddrupal.org/PastMeetings/july-2011• Installing Drupal Commerce Kickstart on Shared Hosting

http://browarddrupal.org/PastMeetings/april-2012

• This is an update to the July 2012 Broward Drupal presentation. This will cover how to install BOA 2.0.8 (Barracuda Octopus Aegir) on a clean Ubuntu 12.04 LTS VPS.

• Don’t forget to checkout Omega8cc’s website for the latest BOA news: http://omega8.cc/

@hectoriribarne

Page 3: Installing BOA on Ubuntu 12.04 LTS

Download and install Acquia Dev Desktop:

@hectoriribarne

Option1) Install Drupal locally using Acquia Dev Desktop

Page 4: Installing BOA on Ubuntu 12.04 LTS

Log into cPanel on your shared host, select Fantastico, and install Drupal:

@hectoriribarne

Option 2) Install Drupal on a Shared Host using cPanel/Fantastico

Page 5: Installing BOA on Ubuntu 12.04 LTS

Type three commands on clean Ubuntu 12.04 LTS VPS:

wget -q -U iCab http://files.aegir.cc/versions/BOA.sh.txtbash BOA.sh.txtboa in-stable public server.example.com [email protected] o1 max

THAT’S IT!!!

Note: Items in green italics should be replaced by your specific server, domain, email address, etc.

@hectoriribarne

Option 3) Install BOA on a VPS to manage Drupal

Page 6: Installing BOA on Ubuntu 12.04 LTS

I choose option 3!!!

@hectoriribarne

Which option do you choose?

Page 7: Installing BOA on Ubuntu 12.04 LTS

BOA stands for Barracuda Octopus Aegir.

Barracuda is a bash script to install and/or upgrade, tuned for high performance, the Aegir master instance (i.e. Aegir).

Octopus is a bash script to install and/or upgrade, tuned for high performance, Aegir Satellite Instances (like Commerce Kickstart, Open Public, etc.).

@hectoriribarne

So, what is BOA?

Page 8: Installing BOA on Ubuntu 12.04 LTS

@hectoriribarne

So, why should I use BOA?

Page 9: Installing BOA on Ubuntu 12.04 LTS

BOA will automatically block IP addresses that repeatedly fail root login attempts

@hectoriribarne

BOA automatically blocks root login hack attempts

Page 10: Installing BOA on Ubuntu 12.04 LTS

• All libraries & tools required to install and run Nginx based Aegir system.

• BOA runs backups for all your files and databases daily. All backups are versioned and rotated, so there is always a copy of all your files from the last 3 days (rotated daily). Checkout the following link for details: http://omega8.cc/aegir-and-r1soft-backups-rotation-policy-119

•  Autonomous Maintenance & Auto-Healing scripts

• New Relic Server and Apps Monitor with per Site/Instance/Server reporting.

@hectoriribarne

Other things BOA provides

Page 11: Installing BOA on Ubuntu 12.04 LTS

Login to your NewRelic dashboard for an individual site on your server:

@hectoriribarne

NewRelic.com monitors your server for free(Lite version)

Page 12: Installing BOA on Ubuntu 12.04 LTS

You will get a weekly email with stats on each of your sites:

@hectoriribarne

NewRelic.com sends you weekly emails

Page 13: Installing BOA on Ubuntu 12.04 LTS

Droptor is a Drupal module that monitors a site:

@hectoriribarne

Droptor.com is another option for monitoring sites (first site free)

Page 14: Installing BOA on Ubuntu 12.04 LTS

Droptor can monitor memory usage:

@hectoriribarne

Droptor.com has more Drupal specific anlaysis (first site free)

Page 15: Installing BOA on Ubuntu 12.04 LTS

@hectoriribarne

Detailed Installation Instructions

Page 16: Installing BOA on Ubuntu 12.04 LTS

Go to your domain name host (i.e. DomainHost.com) and point your main domain name (i.e. example.com) to the name servers of your host (e.g. ns1.linode.com, ns2.linode.com or dns1.stabletransit.com, dns2.stabletransit.com, etc.)

Add a wildcard (i.e. *) A Record for your domain name (i.e. the main domain on your VPS account).

Wait for the information to get propagated (this can take up to several hours).

Did I mention to wait for the information to get propagated?

@hectoriribarne

Before you run the Barracuda script

Page 17: Installing BOA on Ubuntu 12.04 LTS

Via SSH, login as root

Determine your server ( on Linode, it is part of your prompt. For example, if your prompt is root@li123-456:~# , then your server is li123-456).

@hectoriribarne

Determine the name of your server

Page 18: Installing BOA on Ubuntu 12.04 LTS

@hectoriribarne

Barracuda and Octopus time!

Type three commands at the prompt logged in as root:

wget -q -U iCab http://files.aegir.cc/versions/BOA.sh.txtbash BOA.sh.txtboa in-stable public server.example.com [email protected] o1 max

Note: Items in green italics should be replaced by your specific server, domain, email address, etc. Also using max in the third line will install all Octopus platforms.

Page 19: Installing BOA on Ubuntu 12.04 LTS

See https://github.com/omega8cc/nginx-for-drupal/blob/master/docs/INSTALL.txt for more options:

@hectoriribarne

Other options for installing BOA (locally, on public VPS, etc.)

Page 20: Installing BOA on Ubuntu 12.04 LTS

@hectoriribarne

Voila!

Page 21: Installing BOA on Ubuntu 12.04 LTS

Reference for simple BOA install: https://gist.github.com/2624110

Further information on learning Omega8cc’s BOA:http://groups.drupal.org/node/163784 (BOA Wiki)http://groups.drupal.org/boa (BOA on GDO)http://drupal.org/project/barracuda http://drupal.org/project/octopus

@hectoriribarne

Page 22: Installing BOA on Ubuntu 12.04 LTS

Questions?

@hectoriribarne

Page 23: Installing BOA on Ubuntu 12.04 LTS

Hector IribarneBrowardDrupal.org Co-organizer

http://Iribarne.com/ Twitter: @hectoriribarne