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