PHP/Postgresql problem
| From: | Ken Harris | Date: | Tue, 13 Jan 2004 16:44:59 +0000 |
| Subject: | PHP/Postgresql problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-174467@lists.php.net to get a copy of this message | ||
I am trying to get PHP to work with an instance of postgresql on a server.
There is already one, 'proprietary' postgresql running with its own user, own
group and own (not default) port.
The postgresql I am installing will be used for several database projects.
following are my config/makes and the results:
Postgres (7.3.5) configures, compiles and installs cleanly with:
./configure --enable-odbc --enable-tcl --enable-locale --with-python --with-
perl --with-readline
make; make install
At which point I can create users and databases and connect to them with the
command-line tools.
PHP configures and compiles cleanly with:
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql --with-
pgsql=/usr/local/pgsql --with-gettext --with-ldap --without-imap --enable-
sigchild --enable-force-cgi-redirect
make
However make test (or make install and attempt to use it) yield the follow flow
of messages:
PHP Warning: Function registration failed - duplicate name - pg_connect in
Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_pconnect in
Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_close in
Unknown on line 0
PHP Warning: Function registration failed - duplicate name -
pg_connection_status in Unknown on line 0