aegir presentation

29
S Aegir 0.4 Alpha 5 Use Aegir to generate Multiple Drupal websites Drupal Camp – Toronto October 2010 @mindtrades , Email: [email protected]

Upload: mindtrades

Post on 22-May-2015

1.372 views

Category:

Technology


1 download

DESCRIPTION

Install Aegir to serve drupal multisite functionality

TRANSCRIPT

Page 1: Aegir presentation

S

Aegir 0.4 Alpha 5Use Aegir to generate Multiple Drupal websites

Drupal Camp – Toronto

October 2010

@mindtrades , Email: [email protected]

Page 2: Aegir presentation

What is Aegir

Aegir is a set of Drupal modules that helps you maintain your Drupal sites.

Provides you with a simple Drupal based hosting front end for your entire network of sites

It deployes the new site as a new node. So to create a site you need to create a new site node.

Page 3: Aegir presentation

History of Aegir

Aegir was Developed initially by rain city studios and now the development is headed by development seed. It is head by Adrian Rossouw

Adrian is a senior developer at Development Seed. He is the father of Aegir, a set of contributed modules useful for hosting and managing huge numbers of Drupal sites.A Great Contribution to the Community.

Page 4: Aegir presentation

Requirement for Aegir

The instructions are mentioned on install.txt file ,we would go into details of Architecture

Your Own Linux server or a VPS ( 512 RAM min) as configuration requires you to have root permissions.

System requirement is same as to use Drupal as it is based completely on Drupal.

Vps Running Apache.We would work here with Apache 2, But the Script is compatible with apache 1.x too.It also works well with Nginx

Php 5.2- As Aegir would use drush, we would require php 5.2 and above

Mysql would be the database server Would require MTA(mail Transfer agent) like Sendmail,postfix. This is

required to send emails when you add new sites. Other Utilities like : sudo,git and unzip is required because your script

would get installed directly from git. As a jquery library is used Unzip is essential to extract

Page 5: Aegir presentation

Step-1

Set up wild card dns for your domain , Enter a new A Record eg * A 173.xxx.xxx.xxx

apt-get install apache2 php5 php5-cli php5-mysql mysql-server postfix

apt-get install sudo git-core unzip( to install aegir from git)Install all the packages Required: The Lamp stack

Page 6: Aegir presentation

Step-2- Aegir User

The provision framework would require script to be run as non-root user for security and would have all file permissions to be safe, so we need a non root user here

adduser --system --group --home /var/aegir aegir

adduser aegir www-data

This ensures that the file permissions on the hosted sites are always safe

Page 7: Aegir presentation

Step-3 Apache Config

The Rewrite module should be enabled and apache must be configured to include aegir vhost path to read configurations

a2enmod rewrite

echo "Include /var/aegir/config/vhost.d/" > /etc/apache2/conf.d/aegir

Page 8: Aegir presentation

Step 4-Database Configuration

Login to mysql -p

CREATE DATABASE aegir;

GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, \

CREATE TEMPORARY TABLES, LOCK TABLES ON aegir.* TO \

'aegir'@'localhost' IDENTIFIED BY ’testing';

Page 9: Aegir presentation

Step 5-Install Script

http://git.aegirproject.org/?p=hostmaster.git;a=blob_plain;f=install.sh.txt;hb=hostmaster-0.4-alpha5 ( Change the URL for your domain name )

su -s /bin/sh aegir –c "sh /var/tmp/install.sh.txt" apt-get install php-pear ( Drush broken error) pear install Console_Table cp /usr/share/php/Console/Table.php

/var/aegir/drush/includes/table.inc /etc/init.d/apache2 restart

Download from pear is broken; Critical bug has been submitted, Immediate fix Is

To install pear console table and copy it into your standard install

Page 10: Aegir presentation

Towards Aegir

Now point your browser to http://aegir.mindtrades.ca/install.php and proceed

Page 11: Aegir presentation

Select Install Profile

Page 12: Aegir presentation

DataBase Configuration

Page 13: Aegir presentation

Site Configuration

Page 14: Aegir presentation

Aegir Configuration

Page 15: Aegir presentation

Web Server Settings

aegir ALL=NOPASSWD: /usr/sbin/apache2ctl

Apache should be restarted every time a new site is created

Page 16: Aegir presentation

Creating Super Admin

Log in to your mysql server as root, and type in the following command: mysql -uroot -pXXXXXXXXX mysql mysql> GRANT ALL PRIVILEGES ON *.* TO 'aegir_root'@'localhost' \ IDENTIFIED BY 'mypassword' WITH GRANT OPTION;

To create a super admin provide in order to create new databases

Page 17: Aegir presentation

Super Admin

Page 18: Aegir presentation

Final Steps

f you are not logged in as aegir user, log in with command : su -s /bin/sh aegirNow

execute the following commands :

cd /var/aegir/hostmaster-0.4-alpha5

php /var/aegir/drush/drush.php --uri=http://platform.mindtrades.ca hosting-setup

Page 19: Aegir presentation

Final Steps

Page 20: Aegir presentation

Success!

Page 21: Aegir presentation

Import Site

Page 22: Aegir presentation

Installed

Page 23: Aegir presentation

Aegir Dashboard

Page 24: Aegir presentation

Create Site

Page 25: Aegir presentation

Site Creation

Page 26: Aegir presentation

Host Master Profile

Page 27: Aegir presentation

The File Structure

Page 28: Aegir presentation

Easy Install Script: Barracuda( By omega8 )

Installing Barracuda (main system and core Aegir instance)

$ cd; wget http://github.com/omega8cc/nginx-for-drupal/raw/master/BARRACUDA.sh.txt

$ cd; nano BARRACUDA.sh.txt (edit your e-mail address)

$ cd; bash BARRACUDA.sh.txt

Page 29: Aegir presentation

Thanks

Questions

Email : [email protected]

Twitter: @mindtrades