I am trying to enable the pdo driver for my php installation, but when I runn the command
./configure --prefix=/usr/local/webserver/php --with-apxs2=/usr/loc
If you are using PHP 5.6, the command is:
sudo apt-get install php5.6-pgsql