{"id":398,"date":"2018-09-25T08:42:46","date_gmt":"2018-09-25T08:42:46","guid":{"rendered":"http:\/\/kloxo.web.id\/?p=398"},"modified":"2018-09-25T08:42:46","modified_gmt":"2018-09-25T08:42:46","slug":"postgresql-10-5-vs-phppgadmin-5-0","status":"publish","type":"post","link":"https:\/\/kloxo.web.id\/?p=398","title":{"rendered":"Postgresql 10.5 vs phpPgAdmin 5.0"},"content":{"rendered":"<p>Karena ada sesuatu yang harus di&#8217;intip&#8217; di server db yang menggunakan postgresql 10.5, dipasanglah phppgadmin via yum (di centos 6.9 hanya tersedia phppgadmin versi 5.0) dan karena memang phppgadmin ini sudah berhenti pengembangannya.<\/p>\n<p>Selesai &#8216;yum install phpPgAdmin&#8217; lanjut dengan konfigurasi &#8216;nano \/etc\/httpd\/conf.d\/phpPgAdmin.conf&#8217; sesuaikan baris &#8216;Allow from 127.0.0.1 192.168.20.0\/24&#8217; agar hanya diakses dari ip lokal, ketika dipanggil browser &#8216;http:\/\/ipserverdb\/phpPgAdmin&#8217; koq nongol begini :<\/p>\n<p>&#8220;Version of PostgreSQL not supported. Please upgrade to version or later.&#8221;<\/p>\n<p>dicoba &#8216;yum upgrade&#8217;, &#8216;yum upgrade phpPgAdmin&#8217;, &#8216;yum update phpPgAdmin&#8217;&#8230;tetap nihil&#8230;<\/p>\n<p>setelah browsing kesana-sini, ketemu nya disini :<\/p>\n<p>https:\/\/stackoverflow.com\/questions\/46794672\/installing-phppgadmin-5-1-on-ubuntu-16-04-with-postgresql-10-not-supported<\/p>\n<p>edit file &#8216;nano \/usr\/share\/phpPgAdmin\/classes\/database\/Connection.php&#8217; cari baris &#8220;case &#8216;7.4&#8217;: return &#8216;Postgres74&#8217;; break;&#8221; lalu tambahkan baris ini dibawahnya : &#8220;default: return &#8216;Postgres&#8217;; break;&#8221;&#8230;simpan file, restart httpd..dan buka kembali &#8216;http:\/\/ipserverdb\/phpPgAdmin&#8217;&#8230;dan&#8230;taraaaaa!..phpPgAdmin bisa masuk ke db.<\/p>\n<p>selamat mencoba&#8230;DWYOR!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Karena ada sesuatu yang harus di&#8217;intip&#8217; di server db yang menggunakan postgresql 10.5, dipasanglah phppgadmin via yum (di centos 6.9 hanya tersedia phppgadmin versi 5.0) dan karena memang phppgadmin ini sudah berhenti pengembangannya. Selesai &#8216;yum install phpPgAdmin&#8217; lanjut dengan konfigurasi &#8216;nano \/etc\/httpd\/conf.d\/phpPgAdmin.conf&#8217; sesuaikan baris &#8216;Allow from 127.0.0.1 192.168.20.0\/24&#8217; agar hanya diakses dari ip lokal, ketika [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5],"tags":[],"class_list":["post-398","post","type-post","status-publish","format-standard","hentry","category-linux-server","category-spse"],"_links":{"self":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts\/398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=398"}],"version-history":[{"count":1,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts\/398\/revisions"}],"predecessor-version":[{"id":399,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts\/398\/revisions\/399"}],"wp:attachment":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}