This assumes you are logged in as root. First, update and upgrade your system.
apt-get update && apt-get upgrade -yFor the version of OS that currently gets installed with a fresh Binary Lane VPS we also need to update the base system. We like to use aptitude for that; while we’re installing aptitude, we might as well install the other thing that Aegir needs to install properly:
apt-get install curl sendmail aptitude -yUpgrade:
aptitude safe-upgrade -yNow, we need to install the database server. We use MariaDB.
apt-get install mariadb-server -yOne that’s done – you will be prompted to enter a root password for the database – we run the following command:
mysql_secure_installationDon’t worry about changing the root password now that you have already set one, but delete the test database when prompted, disable anonymous access and flush privileges. Now we can install Aegir, nginx, php5-fpm etc.:
echo “deb http://debian.aegirproject.org stable main” | sudo tee -a /etc/apt/sources.list.d/aegir-stable.listEnter the hostmaster URL – usually the fully qualified domain name. Enter the database root password once for provision and once for hostmaster. Assuming all of the above has gone well, you should be given a one-time-login link in your terminal at the end of the install process, e.g.:
curl http://debian.aegirproject.org/key.asc | sudo apt-key add –
apt-get install aegir3 aegir3-provision aegir3-hostmaster nginx php5-fpm
http://aegir.example.com.au/user/reset/1/1446598196/Nw4T4yd25IWEngCP2d2A_Ck3XslBiobnhbuNzXU4/loginNow, before using that run the following:
visudoAdd this to the end of the file:
Defaults:aegir !requirettyThis gives Aegir – the aegir user – permission to restart nginx without requiring a sudo password. Test this works by doing the following: su – aegir
aegir ALL=NOPASSWD: /etc/init.d/nginx
sudo /etc/init.d/nginx restart
What you want to see then is this:
* Restarting nginx nginxThen:
[ OK ]
vim /etc/nginx/nginx.confComment out by putting a # in front of:
# tcp_nopush on;Reboot, and use the one-time-link. You should be logged in fine and now can use Aegir!
# types_hash_max_size 2048;
# error_log /var/log/nginx/error.log;