
{"id":466,"date":"2022-04-03T09:20:28","date_gmt":"2022-04-03T09:20:28","guid":{"rendered":"http:\/\/tty.tartux.net\/?p=466"},"modified":"2022-04-03T09:57:30","modified_gmt":"2022-04-03T09:57:30","slug":"installer-phppgadmin","status":"publish","type":"post","link":"https:\/\/tty.tartux.net\/?p=466","title":{"rendered":"Installer phppgadmin"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p># apt install phppgadmin<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Il faut changer la conf, dans \/etc\/apache2\/conf-available, il faut retirer Require local et remplacer par :<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Allow from all<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Ensuite on relance apache<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p># systemctl restart apache2<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Dans le fichier \/etc\/phppgadmin\/config.inc.php, changer les lignes :<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>$conf['servers'][0]['host'] = '127.0.0.1';<\/p><p><br><\/p><p>$conf['extra_login_security'] = false;<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Dans le fichier \/etc\/postgresql\/12\/main\/pg_hba.conf, ajouter une ligne :<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>host     all          all          192.168.1.0\/24     md5<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><p>Bien respecter les tabulations.<\/p>\n<p><br><\/p>\n<p>Changer le mot de passe de la base postgres :<\/p><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p># su postgres<\/p><p>$ psql<\/p><p>=# \\password postgres<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">On relance ensuite les services<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p># systemctl restart postgresql<\/p><p># systemctl restart apache2<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Et voil\u00e0, on peut se connecter en postgres sur phppgadmin.<\/p>\n","protected":false},"excerpt":{"rendered":"<p># apt install phppgadmin Il faut changer la conf, dans \/etc\/apache2\/conf-available, il faut retirer Require local et remplacer par : Allow from all Ensuite on relance apache # systemctl restart apache2 Dans le fichier \/etc\/phppgadmin\/config.inc.php, changer les lignes : $conf['servers'][0]['host'] = '127.0.0.1'; $conf['extra_login_security'] = false; Dans le fichier \/etc\/postgresql\/12\/main\/pg_hba.conf, ajouter une ligne : host all [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[148],"tags":[25],"class_list":["post-466","post","type-post","status-publish","format-standard","hentry","category-postgresql","tag-postgresql"],"_links":{"self":[{"href":"https:\/\/tty.tartux.net\/index.php?rest_route=\/wp\/v2\/posts\/466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tty.tartux.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tty.tartux.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tty.tartux.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tty.tartux.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=466"}],"version-history":[{"count":17,"href":"https:\/\/tty.tartux.net\/index.php?rest_route=\/wp\/v2\/posts\/466\/revisions"}],"predecessor-version":[{"id":489,"href":"https:\/\/tty.tartux.net\/index.php?rest_route=\/wp\/v2\/posts\/466\/revisions\/489"}],"wp:attachment":[{"href":"https:\/\/tty.tartux.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tty.tartux.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tty.tartux.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}