aegir presentation
DESCRIPTION
Install Aegir to serve drupal multisite functionalityTRANSCRIPT
![Page 1: Aegir presentation](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/1.jpg)
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](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/2.jpg)
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](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/3.jpg)
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](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/4.jpg)
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](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/5.jpg)
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](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/6.jpg)
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](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/7.jpg)
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](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/8.jpg)
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](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/9.jpg)
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](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/10.jpg)
Towards Aegir
Now point your browser to http://aegir.mindtrades.ca/install.php and proceed
![Page 11: Aegir presentation](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/11.jpg)
Select Install Profile
![Page 12: Aegir presentation](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/12.jpg)
DataBase Configuration
![Page 13: Aegir presentation](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/13.jpg)
Site Configuration
![Page 14: Aegir presentation](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/14.jpg)
Aegir Configuration
![Page 15: Aegir presentation](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/15.jpg)
Web Server Settings
aegir ALL=NOPASSWD: /usr/sbin/apache2ctl
Apache should be restarted every time a new site is created
![Page 16: Aegir presentation](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/16.jpg)
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](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/17.jpg)
Super Admin
![Page 18: Aegir presentation](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/18.jpg)
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](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/19.jpg)
Final Steps
![Page 20: Aegir presentation](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/20.jpg)
Success!
![Page 21: Aegir presentation](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/21.jpg)
Import Site
![Page 22: Aegir presentation](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/22.jpg)
Installed
![Page 23: Aegir presentation](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/23.jpg)
Aegir Dashboard
![Page 24: Aegir presentation](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/24.jpg)
Create Site
![Page 25: Aegir presentation](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/25.jpg)
Site Creation
![Page 26: Aegir presentation](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/26.jpg)
Host Master Profile
![Page 27: Aegir presentation](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/27.jpg)
The File Structure
![Page 28: Aegir presentation](https://reader036.vdocuments.net/reader036/viewer/2022062513/555e3ebed8b42a63048b5057/html5/thumbnails/28.jpg)
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