DamnSkippy
Verified User
Howdy, I installed postgresql using RPMs on CentOS 4.3 I followed this how to http://directadmin.com/forum/showthread.php?threadid=14266
I can not connect to it with apache/php using the code in the how to. I get the error Fatal error: Call to undefined function pg_connect() in /var/www/html/pgsql_test.php on line 4
So it seems that php can not use pgsql. I recompiled after editing the config file, restarted apache etc.
Could it be a path issue with the change in the configure.php?
Here is where the RPMs install stuff to:
Executables /usr/bin
Libraries /usr/lib
Documentation /usr/share/doc/postgresqlx.
y.z
/usr/share/doc/postgresqlx.
y.z/contrib
Contrib /usr/share/pgsql/contrib
Data /var/lib/pgsql/data
Backup area /var/lib/pgsql/backup
Templates /usr/share/pgsql
Procedural Languages /usr/lib/pgsql
Development Headers /usr/include/pgsql
Other shared data /usr/share/pgsql
Regression tests /usr/lib/pgsql/test/regress (in the -test package)
Documentation SGML /usr/share/doc/postgresqldocsx.
y.z
I can not connect to it with apache/php using the code in the how to. I get the error Fatal error: Call to undefined function pg_connect() in /var/www/html/pgsql_test.php on line 4
So it seems that php can not use pgsql. I recompiled after editing the config file, restarted apache etc.
Could it be a path issue with the change in the configure.php?
Here is where the RPMs install stuff to:
Executables /usr/bin
Libraries /usr/lib
Documentation /usr/share/doc/postgresqlx.
y.z
/usr/share/doc/postgresqlx.
y.z/contrib
Contrib /usr/share/pgsql/contrib
Data /var/lib/pgsql/data
Backup area /var/lib/pgsql/backup
Templates /usr/share/pgsql
Procedural Languages /usr/lib/pgsql
Development Headers /usr/include/pgsql
Other shared data /usr/share/pgsql
Regression tests /usr/lib/pgsql/test/regress (in the -test package)
Documentation SGML /usr/share/doc/postgresqldocsx.
y.z