PHP Fatal error: Call to undefined function pg_pconnect()

263 Views Asked by At

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?

0

There are 0 best solutions below