Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
postgresql [Le 12/07/2019, 11:21] bcag2 [Installation] |
postgresql [Le 12/07/2019, 15:00] bcag2 [Connexions vers PHP] |
||
---|---|---|---|
Ligne 585: | Ligne 585: | ||
| [[apt://phppgadmin|{{ :apt.png |Installer en 1 clic.}}]] | | | [[apt://phppgadmin|{{ :apt.png |Installer en 1 clic.}}]] | | ||
- | Réaliser ensuite les opérations suivantes : | + | Réaliser ensuite les opérations suivantes : FIXME (sous [[bionic]], pas de fichier //apache.conf// mais //config.inc.php// ! |
<code> | <code> | ||
sudo ln -s /etc/phppgadmin/apache.conf /etc/apache2/conf.d/phppgadmin.conf | sudo ln -s /etc/phppgadmin/apache.conf /etc/apache2/conf.d/phppgadmin.conf | ||
Ligne 608: | Ligne 608: | ||
====Connexions vers PHP==== | ====Connexions vers PHP==== | ||
- | [[:tutoriel/comment_installer_un_paquet|installer|Installer le paquet]] php-pgsql. | + | [[:tutoriel/comment_installer_un_paquet|installer|Installer le paquet]] [[apt://php-pgsql|php-pgsql]] |
<note>Il faut recharger Apache après avoir installé ce module : sudo service apache2 reload</note> | <note>Il faut recharger Apache après avoir installé ce module : sudo service apache2 reload</note> | ||
- | php5-pdo (voir la documentation officielle pour [[http://php.net/pdo|PDO]]) : | + | Activer ce module |
- | <code>sudo pear install pecl-pdo_pgsql</code> | + | <code>sudo phpenmod pdo_pgsql</code> |
- | + | Redémarrer apache2 | |
- | PHP 5.2 : cela se fait automatiquement. | + | |
- | + | ||
- | > FIXME : à compléter. | + | |
====Pool de connexion : PgBouncer==== | ====Pool de connexion : PgBouncer==== | ||
[[pgbouncer|PgBouncer]] | [[pgbouncer|PgBouncer]] |