This site is a static archive of the Aegir community site. Documentation has moved to http://docs.aegirproject.org. Other community resources can be found on the Contacting the community page.
Skip navigation

Revision of Remote webserver configuration from Fri, 02/03/2012 - 20:46

Help

Remote webserver configuration

Tagged:

Any number of remote web servers may be configured. They need an aegir user and webserver configuration, with the same user name and directory paths. SSH public/private keys should be set up so hostmaster's Aegir user can access remote web Aegir users with no passwords. The above Apache configuration needs to be performed too.

They will also need a login shell, which can be modified using the chsh command.

Shell commands as root::

adduser --system --group --home /var/aegir aegir
adduser aegir www-data    #make aegir a user of group www-data
chsh -s /bin/sh aegir
apt-get install rsync apache2 php5 php5-cli php5-mysql
mkdir /var/aegir/.ssh
cat > /var/aegir/.ssh/authorized_keys <<EOF

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1mhCyKYAhzM2tmMwHZLzgut0kURj+30fJ8PBLiq3WT+8eh83Lgb0hvfW7q/dgYuWqsBOwPYGF8X+m6pGLUaFtXd0FHGpolOH4522FE79ImhZRFO/AxV3LA5LujFOoMa6S5+DJL2mknN4oE7Sgo7HccXciLNicITIXubJBKAz6Z/iQblij26Vq9kVO8LCyQFCLxUBKCxJed38z4RWD3YpfN2zgUvhc/Ns9F4tMR7DXGEufFF19Kep2bXsEzWGEuVUaqFeLPG+n9RPf76RvozauLda/L3o5dNvU1aMwJfrCVJ5fNMczH6IpOZM0bMushTw20amDnWEcWEw0SypV0qUF aegir@filer01 EOF chown aegir:aegir /var/aegir/.ssh -R chmod 750 /var/aegir/.ssh chmod 640 /var/aegir/.ssh/authorized_keys a2enmod rewrite ln -s /var/aegir/config/apache.conf /etc/apache2/conf.d/aegir.conf visudo

The following needs to be added to your sudoers file:

Defaults:aegir  !requiretty
aegir ALL=NOPASSWD: /usr/sbin/apache2ctl
Need help?

Documentation

The notebook section provides a way for you to store and share information with your group members. With the book feature you can:

  • Add book pages and organize them hierarchically into different books.
  • Attach files to pages to share them with others.
  • Track changes that others have made and revert changes as necessary.
  • Archive books that are no longer of interest to the group. Archived books can be reactivated later if needed.

The revisions let you track differences between multiple versions of a post.