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