Ceci est une ancienne révision du document !
Les dépots debian de Gandi sont tout pourris alors on met les dépots officiels dans le `source.list`
deb http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse deb http://security.ubuntu.com/ubuntu xenial-security main restricted universe multiverse deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
# On met en_US.UTF8 par défaut sudo dpkg-reconfigure locales # Quelques paquets utiles sudo apt update sudo apt install make cron vim screen rsync git software-properties-common unattended-upgrades language-pack-fr sudo apt install fail2ban
sudo vi /etc/apt/sources.list.d/pgdg.list deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo apt-get update sudo apt install postgresql-client-9.3 postgresql-9.3 libpq-dev postgresql-server-dev-9.3
Mise en place du Hot Standby:
https://cloud.google.com/community/tutorials/setting-up-postgres-hot-standby
sudo apt-get update sudo apt install apache2 php php-pgsql libapache2-mod-php php7.0-mbstring php-xml sudo a2enmode rewrite cgi
Gotchas :