This extension enables PHP to connect to and use PostgreSQL databases. php-pgsql requires postgresql. To enable the pgsql extension for php, go to /etc/php/pgsql.ini and uncomment the line: ; extension=pgsql.so