=====installation pré requise openMairie sur debian=====
--- //[[f.raynaud@arles-linux.org|François Raynaud]] 2020/06/08 15:49//
**Version Debian 10 buster**
openMairie fonctionne en [[architecture_3tiers|architecture web ou architecture 3 tiers]].
//Pour faire fonctionner un logiciel openMairie, il faut installer : apache2 (serveur web), php (langage de programmation) , postgresql (base de données) et postgis (cartouche géographique de la base de données postgresql)//
====Mettre à jour le source list (liste des paquets)====
sudo apt update -y
====Installer apache (serveur web)====
sudo apt install -y apache2
====Installer php et les librairies php nécessaires====
sudo apt install -y php
sudo apt install -y php-pgsql
sudo apt install -y php-mbstring
sudo apt install -y php-xml
redémarrer apache pour prendre en compte php
sudo service apache2 restart
====Installer postgresql (base de données) qui est en version 11====
sudo apt install -y postgresql
====Installer postgis (cartouche géographique de postgresql) qui est en version 2.5====
sudo apt install -y postgresql-contrib
sudo apt install -y postgis
sudo apt install -y postgresql-11-postgis-2.5
sudo apt install -y postgresql-11-postgis-2.5-scripts
redémarrer postgresql pour prendre en compte la nouvelle configuration
sudo service postgresql restart
Une procédure complète est téléchargeable sur [[https://gitlab.com/arles-linux/install_openmairie/-/tree/master/debian|gitlab.com]]
voir [[securite_postgres|Permissions sous postgresql]]