Tags

Aegir 2 on ubuntu 12.04

 

sudo apt-get update

sudo apt-get upgrade

 

APACHE

sudo apt-get install apache2

sudo cp /etc/apache2/apache2.conf /etc/apache2/apache2.backup.conf

 

sudo vim /etc/apache2/apache2.conf

 

<IfModule mpm_prefork_module>

StartServers 2

MinSpareServers 6

MaxSpareServers 12

MaxClients 30

MaxRequestsPerChild 3000

</IfModule>

 

sudo service apache2 restart

 

sudo a2enmod rewrite

sudo service apache2 restart

 

 

MYSQL

sudo apt-get install mysql-server

sudo mysql_secure_installation

 

 

PHP

sudo apt-get install php5 libapache2-mod-php5 php-pear php5-mysql php5-suhosin php5.cli php5-gd postfix sudo rsync git-core unzip

 

sudo vim /etc/php5/cli/php.ini

 

memory_limit = 192M

 

sudo vim /etc/php5/apache2/php.ini

 

memory_limit = 128M

 

FIREWALL

 

 

DRUSH

sudo pear channel-discover pear.drush.org

sudo pear install drush/drush

 

sudo cd /usr/share/php/drush/lib

sudo wget http://download.pear.php.net/package/Console_Table-1.1.3.tgz

sudo tar -zxvf Console_Table-1.1.3.tgz

 

USERS

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

sudo adduser aegir www-data    #make aegir a user of group www-data

sudo echo "aegir ALL=NOPASSWD: /usr/sbin/apache2ctl" | sudo tee -a /etc/sudoers

 

sudo vim /etc/sudoers.d/aegir

Defaults:aegir  !requiretty

aegir ALL=NOPASSWD: /usr/sbin/apache2ctl

sudo chmod 0440 /etc/sudoers.d/aegir

FQDN

sudo hostname NEW_NAME

sudo vim /etc/hosts

sudo service apache2 restart

hostname -f

uname -n

resolveip NEW_NAME

resolveip IP

sudo echo "deb http://debian.aegirproject.org stable main" | sudo tee -a /etc/apt/sources.list.d/aegir-stable.list

sudo wget -q http://debian.aegirproject.org/key.asc -O- | sudo apt-key add -

sudo apt-get update

sudo su -s /bin/bash - aegir

 

AEGIR 2

drush dl --destination=/var/aegir/.drush provision-6.x-2.0

drush cc all

drush hostmaster-install

AEGIR 1

drush dl --destination=/var/aegir/.drush provision-6.x

drush hostmaster-install

+++++++++++++++++++++++++++++++++++++++++++++

sudo cp /var/aegir/hostmaster-6.x-2.0/profiles/hostmaster/modules/hosting/queued/init.d.example /etc/init.d/hosting-queued

sudo update-rc.d hosting-queued defaults

sudo /etc/init.d/hosting-queued

sudo ln -s /var/aegir/config/apache.conf /etc/apache2/conf.d/aegir.conf

 

sudo service apache2 restart