None of the supported PHP extensions (PgSQL, PDO_PgSQL) are available

10,193
sudo apt-get install php7.0-pgsql

 cd /etc/postgresql/9.5/main 

 sudo nano pg_hba.conf 

local   all             postgres                                peer

should be 

local   all             postgres                                md5

sudo service postgresql restart

then you good to go :)

Share:
10,193
NjFern
Author by

NjFern

Updated on June 07, 2022

Comments

  • NjFern
    NjFern about 2 years

    i have enabled extension=php_pdo_pgsql.dll and extension=php_pgsql.dll in my php.ini file but still unable to get adminer to work.

    and also sudo service apache2 restart

  • mandaputtra
    mandaputtra almost 5 years
    Why adminer cant connect to peer?
  • suhailvs
    suhailvs over 3 years
    thanks, i have to run sudo apt-get install php7.4-pgsql
  • Prahlad
    Prahlad over 2 years
    For php 7.3 sudo apt-get install php7.3-pgsql