{"id":7122,"date":"2023-03-06T23:40:40","date_gmt":"2023-03-06T18:10:40","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=7122"},"modified":"2023-03-06T23:42:11","modified_gmt":"2023-03-06T18:12:11","slug":"how-to-install-phppgadmin-in-the-remote-server-linux","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-install-phppgadmin-in-the-remote-server-linux\/","title":{"rendered":"How to install phpPgAdmin in the remote server &#8211; Linux"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Introduction<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">phpPgAdmin is a free software tool written in PHP, intended to handle the administration of Postgres database over the Web.<br><strong>Prerequisite<\/strong><br>1. An SSH user with sudo privileges<br>2. A web server has to be installed<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Postgres Database with their clients has to be installed<br>4. A database and its user with a password<br><strong>Implementation<\/strong><br>Step 1: Log in to the server via SSH<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ ssh username@IP<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 2: Download the phpPgAdmin from the below link it will download to our local<br>Link: <a href=\"https:\/\/sourceforge.net\/projects\/phppgadmin\/\" target=\"_blank\" rel=\"noopener\">https:\/\/sourceforge.net\/projects\/phppgadmin\/<br><br><\/a>Step 3: Move the tar file which we downloaded in step 2 to the remote server document root<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ scp \/path of the downloaded file\/ username@IP:\/path where we need to place the file\/<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 4: Extract the download file<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>To extract the tar.gz format file<br>$ gunzip phpPgAdmin-*.tar.gz<br>$ tar -xvf phpPgAdmin-*.tar<br><br>To extract the tar.bz2 format file<br>$ bunzip2 phpPgAdmin-*.tar.bz2$ tar -xvf phpPgAdmin-*.tar<br><br>To extract a zip format file<br>$unzip phpPgAdmin-*.zip<br><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 5: Configure Postgres to listen to the local host. If we require to listen to the remote IP, replace the local host with the remote IP<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ vi \/etc\/postgresql\/&lt;version&gt;\/main\/pg_hba.conf<br><br>======<br><br>Add the below line in the location # IPv4 local connections #<br><br>host all all 127.0.0.1\/32 md5<br><br>======<br><br><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/fy2Ea0FCjraCpl_l_lz5JrRuUajx67llQI2cWel_HshOusFwBEL827derqEygTrFy5YiwNyVahPC6sn9ecThm1zJi6kbuGZy6MCNX-VnvdzolyXKV_uS3qHi1xZxUfmWwgGrUbHfRscfoHSUhCK3pDM\" width=\"610\" height=\"21\"><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 6: To enable PostgreSQL user, we need to update phpPgAdmin\/conf\/config.inc.php in the document root with the below settings<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$conf[&#8216;extra_login_security&#8217;] = false;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Step 7: Restart Postgres service <\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ service postgresql restart<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 8: Access the phpPgAdmin in the browser http:\/\/&lt;IP&gt;\/phpPgAdmin<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/evERduINOb2kjniIuDneUCQKa4AY-rqchMdHMEtYcUU4swmYBWYdrBeN9ROgifnMBB31wmZznrBFPTCpyORG5d9qEJzM2uGwmYYhEOT0LlcSKAS5TnxlF6t44QgVOFOPiirDN0zZALxWHgvysvjRabU\" width=\"498\" height=\"236\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction phpPgAdmin is a free software tool written in PHP, intended to handle the administration of Postgres database over the [&hellip;]<\/p>\n","protected":false},"author":495,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[972],"class_list":["post-7122","post","type-post","status-publish","format-standard","hentry","category-web-architecture","tag-phppgadmin","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1QS","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/495"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=7122"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7122\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=7122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=7122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=7122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}