How to Install pgAdmin4 in CentOS 7

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Marin Todorov

I am a bachelor in computer science and a Linux Foundation Certified System Administrator. Currently working as a Senior Technical support in the hosting industry. In my free time I like testing new software and inline skating.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

11 Responses

  1. Darren says:

    I received the following errors from in /var/log/httpd/error.log when attempting to access the web interface http://localhost/pgadmin4.

    IOError: [Errno 13] Permission denied: '/var/log/pgadmin4/pgadmin4.log'
    OperationalError: (sqlite3.OperationalError) attempt to write a readonly database 

    Resolved by setting the correct SELinux context correctly (bad idea to just disable SELinux)

    # chcon -t httpd_sys_rw_content_t /var/log/pgadmin4 -R
    # chcon -t httpd_sys_rw_content_t /var/lib/pgadmin4 -R


    • Ravi Saive says:


      Thanks for sharing the tip, hope it will help other users, who face similar issue.. Also I will update the article with SELinux context as shared..

  2. Bill Sawyer says:

    I think I have a similar problem. It appears that Apache is running python 3.6, but this is installing on python 2.7. I believe this is causing a mismatch. But, I do not see a mechanism for telling pgadmin4 to use python 3.6 or telling Apache to use python 2.7.

    I’ve repeated all of the steps listed several times over, from clean builds. I am doing a minimal server build. I’m building this on a VM from a Centos 7 image, but I am updating and upgrading (yum -y update && yum -y upgrade) as part of my process. This is my 4th go-round, and I am at a loss to get this working.

  3. Manoj says:

    Hi, I’m getting this error when accessing it through http://ip-address/pgadmin4 or http://localhost/pgadmin4 on centos 7.

    Unable to connect
    Firefox can’t establish a connection to the server at localhost.
    Please help me with this.

  4. Alexandr Dragutan says:

    Please add EPEL repo installation here.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.