Your PHP installation does not support PostgreSQL. You need to recompile PHP using the — with-pgsql configure option
Aug 8, 2017 · 1 min read
Install this command
sudo apt-get install php5.6-pgsql
Open php.ini from /etc/php/5.6/cli/php.ini and uncommad the two extensions
extension=php_pdo_pgsql.dll
extension=php_pgsql.dll
Restart the Apache2 and Postgresql
sudo service apache2 restart
sudo service postgresql restart
