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 :)
Author by
NjFern
Updated on June 07, 2022Comments
-
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 almost 5 yearsWhy adminer cant connect to peer?
-
suhailvs over 3 yearsthanks, i have to run
sudo apt-get install php7.4-pgsql
-
Prahlad over 2 yearsFor php 7.3 sudo apt-get install php7.3-pgsql