0

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?

treyBake
  • 6,440
  • 6
  • 26
  • 57
Alfred Balle
  • 1,135
  • 4
  • 16
  • 32

0 Answers0