I'm running CentOS and have Apache, PHP and php-pgsql installed.
Running my PHP script with:
php my-script.php
Works.
But when calling it via Apache I'm getting the error in the httpd log:
PHP Fatal error: Call to undefined function pg_pconnect()
Should php-pgsql be enabled in Apache?